X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fannunciator.cxx;h=97a2cc9ae2641470bc597e1b0aa6e6ceeb6493a5;hb=42c3d8867f20ab46ebf014ea54b15d9f7c631d3a;hp=45ced6d18afa5849821e9ef0778eb9328fa68866;hpb=940d12528bf6453d43d3135be696d3868fdd683b;p=flightgear.git diff --git a/src/Instrumentation/annunciator.cxx b/src/Instrumentation/annunciator.cxx index 45ced6d18..97a2cc9ae 100644 --- a/src/Instrumentation/annunciator.cxx +++ b/src/Instrumentation/annunciator.cxx @@ -33,6 +33,7 @@ Annunciator::init () _fuel_l = fgGetNode( "/consumables/fuel/tank[0]/level-gal_us", true ); _fuel_r = fgGetNode( "/consumables/fuel/tank[1]/level-gal_us", true ); _oil_px = fgGetNode( "/engines/engine[0]/oil-pressure-psi", true ); + _elec_serv = fgGetNode( "/systems/electrical/serviceable", true ); _ann_volts = fgGetNode( "/instrumentation/annunciator/volts", true ); _ann_vac_l = fgGetNode( "/instrumentation/annunciator/vacuum-left", true ); @@ -52,7 +53,7 @@ Annunciator::update (double dt) timer3 += dt; timer4 += dt; - if ( _volts->getDoubleValue() < 5.0 ) { + if ( _volts->getDoubleValue() < 5.0 || !_elec_serv->getBoolValue() ) { // Not enough juice to illuminate the display _ann_volts->setBoolValue( false ); _ann_vac_l->setBoolValue( false );