Skip to content

Commit

Permalink
AugmentCmd should be clamped to [0.0..1.0] for 'augmentation method t…
Browse files Browse the repository at this point in the history
…wo' (#1090)
  • Loading branch information
cbirkhold authored May 30, 2024
1 parent e26d03b commit 90755f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/propulsion/FGTurbine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,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));
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 @@ -365,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));
}
}

Expand Down

0 comments on commit 90755f7

Please sign in to comment.