1
0
Fork 0

At low rpms when the alternator isn't able to generate enough current to charge

the battery, don't show positive amps.
This commit is contained in:
curt 2003-05-28 18:47:42 +00:00
parent 679325b947
commit 80e300c65a

View file

@ -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