1 Aug 2003 02:22
CVS: source/src/Instrumentation annunciator.cxx, 1.1, 1.2 annunciator.hxx, 1.1, 1.2
Curtis L. Olson <curt <at> flightgear.org>
2003-08-01 00:22:18 GMT
2003-08-01 00:22:18 GMT
Update of /var/cvs/FlightGear-0.9/source/src/Instrumentation
In directory baron:/tmp/cvs-serv15814
Modified Files:
annunciator.cxx annunciator.hxx
Log Message:
Annunciators cannot work if electrical system is not serviceable.
Index: annunciator.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/Instrumentation/annunciator.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** annunciator.cxx 27 May 2003 19:12:33 -0000 1.1
--- annunciator.cxx 1 Aug 2003 00:22:14 -0000 1.2
***************
*** 34,37 ****
--- 34,38 ----
_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 );
***************
*** 53,57 ****
timer4 += dt;
! if ( _volts->getDoubleValue() < 5.0 ) {
// Not enough juice to illuminate the display
(Continue reading)
RSS Feed