Skip to content

Commit 90755f7

Browse files
authored
AugmentCmd should be clamped to [0.0..1.0] for 'augmentation method two' (#1090)
1 parent e26d03b commit 90755f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models/propulsion/FGTurbine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ double FGTurbine::Run()
243243
if (AugmentCmd > 0.0) {
244244
Augmentation = true;
245245
double tdiff = (MaxThrust * MaxThrustLookup->GetValue()) - thrust;
246-
thrust += (tdiff * AugmentCmd);
246+
thrust += (tdiff * std::min(AugmentCmd, 1.0));
247247
FuelFlow_pph = Seek(&FuelFlow_pph, thrust * ATSFC->GetValue(), 5000.0, 10000.0);
248248
NozzlePosition = Seek(&NozzlePosition, 1.0, 0.8, 0.8);
249249
} else {
@@ -365,7 +365,7 @@ double FGTurbine::Trim()
365365
if (AugMethod == 2) {
366366
if (AugmentCmd > 0.0) {
367367
double tdiff = (MaxThrust * MaxThrustLookup->GetValue()) - thrust;
368-
thrust += (tdiff * AugmentCmd);
368+
thrust += (tdiff * std::min(AugmentCmd, 1.0));
369369
}
370370
}
371371

0 commit comments

Comments
 (0)