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:
parent
679325b947
commit
80e300c65a
1 changed files with 3 additions and 1 deletions
|
@ -335,7 +335,9 @@ void FGElectricalSystem::update (double dt) {
|
||||||
// make this more generic
|
// make this more generic
|
||||||
double amps = 0.0;
|
double amps = 0.0;
|
||||||
if ( fgGetBool("/controls/switches/master-bat") ) {
|
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 += 40.0 * alt_norm;
|
||||||
}
|
}
|
||||||
amps -= 15.0; // normal load
|
amps -= 15.0; // normal load
|
||||||
|
|
Loading…
Add table
Reference in a new issue