From 90755f7642893e98eed3d6a64e0c9898c3f26972 Mon Sep 17 00:00:00 2001 From: Chris Birkhold Date: Thu, 30 May 2024 15:43:51 -0700 Subject: [PATCH] AugmentCmd should be clamped to [0.0..1.0] for 'augmentation method two' (#1090) --- src/models/propulsion/FGTurbine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/propulsion/FGTurbine.cpp b/src/models/propulsion/FGTurbine.cpp index 5a2f510e2..0b5c73741 100644 --- a/src/models/propulsion/FGTurbine.cpp +++ b/src/models/propulsion/FGTurbine.cpp @@ -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 { @@ -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)); } }