Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

AugmentCmd should be clamped to [0.0..1.0] for 'augmentation method two' #1090

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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 @@ -365,7 +365,7 @@
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
Loading