1
0
Fork 0

Filters out negative powers when the propeller is not rotating.

This commit is contained in:
Bertrand Coconnier 2021-05-22 12:41:50 +02:00
parent d3956a4af7
commit d4f31c3507

View file

@ -97,7 +97,10 @@ void FGElectric::Calculate(void)
HP = PowerWatts * in.ThrottlePos[EngineNumber] / hptowatts;
LoadThrusterInputs();
Thruster->Calculate(HP * hptoftlbssec);
// Filters out negative powers when the propeller is not rotating.
double power = HP * hptoftlbssec;
if (RPM <= 0.1) power = max(power, 0.0);
Thruster->Calculate(power);
RunPostFunctions();
}