Skip to content

Commit

Permalink
Limit clamping of the augmented range to current 'method two' ...
Browse files Browse the repository at this point in the history
this avoid conflicts with potential future augmentation modes while
keeping the thrust produced for 'method two' within the range configured
for the turbine.
  • Loading branch information
cbirkhold committed May 18, 2024
1 parent cce6e3e commit ec69698
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/models/propulsion/FGTurbine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ void FGTurbine::Calculate(void)
if (ThrottlePos > 1.0) {
AugmentCmd = ThrottlePos - 1.0;
ThrottlePos -= AugmentCmd;
if (AugmentCmd > 1.0) {
AugmentCmd = 1.0;
}
} else {
AugmentCmd = 0.0;
}
Expand Down Expand Up @@ -246,7 +243,7 @@ double FGTurbine::Run()
if (AugmentCmd > 0.0) {
Augmentation = true;
double tdiff = (MaxThrust * MaxThrustLookup->GetValue()) - thrust;
thrust += (tdiff * AugmentCmd);
thrust += (tdiff * std::min(AugmentCmd, 1.0));

Check warning on line 246 in src/models/propulsion/FGTurbine.cpp

View check run for this annotation

Codecov / codecov/patch

src/models/propulsion/FGTurbine.cpp#L246

Added line #L246 was not covered by tests
FuelFlow_pph = Seek(&FuelFlow_pph, thrust * ATSFC->GetValue(), 5000.0, 10000.0);
NozzlePosition = Seek(&NozzlePosition, 1.0, 0.8, 0.8);
} else {
Expand Down Expand Up @@ -368,7 +365,7 @@ double FGTurbine::Trim()
if (AugMethod == 2) {
if (AugmentCmd > 0.0) {
double tdiff = (MaxThrust * MaxThrustLookup->GetValue()) - thrust;
thrust += (tdiff * AugmentCmd);
thrust += (tdiff * std::min(AugmentCmd, 1.0));

Check warning on line 368 in src/models/propulsion/FGTurbine.cpp

View check run for this annotation

Codecov / codecov/patch

src/models/propulsion/FGTurbine.cpp#L368

Added line #L368 was not covered by tests
}
}

Expand Down

0 comments on commit ec69698

Please # to comment.