From 80e300c65afa027e511e143dab32315a13c08ca1 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 28 May 2003 18:47:42 +0000 Subject: [PATCH] At low rpms when the alternator isn't able to generate enough current to charge the battery, don't show positive amps. --- src/Systems/electrical.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5