From: curt Date: Wed, 28 May 2003 18:47:42 +0000 (+0000) Subject: At low rpms when the alternator isn't able to generate enough current to charge X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=80e300c65afa027e511e143dab32315a13c08ca1;p=flightgear.git At low rpms when the alternator isn't able to generate enough current to charge the battery, don't show positive amps. --- diff --git a/src/Systems/electrical.cxx b/src/Systems/electrical.cxx index 6e781f050..4905dbeb4 100644 --- a/src/Systems/electrical.cxx +++ b/src/Systems/electrical.cxx @@ -335,7 +335,9 @@ void FGElectricalSystem::update (double dt) { // make this more generic double amps = 0.0; if ( fgGetBool("/controls/switches/master-bat") ) { - if ( fgGetBool("/controls/switches/master-alt") ) { + if ( fgGetBool("/controls/switches/master-alt") && + fgGetDouble("/engines/engine[0]/rpm") > 800 ) + { amps += 40.0 * alt_norm; } amps -= 15.0; // normal load