Filters out negative powers when the propeller is not rotating.
This commit is contained in:
parent
d3956a4af7
commit
d4f31c3507
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue