1 // annunciator.hxx - manage the annunciator states
2 // Written by Curtis Olson, started May, 2003.
5 #ifndef __INSTRUMENTS_ANNUNCIATOR_HXX
6 #define __INSTRUMENTS_ANNUNCIATOR_HXX 1
9 # error This library requires C++
12 #include <simgear/props/props.hxx>
14 #include <Main/fgfs.hxx>
18 * Model the annunciators. This is innitially hard coded for a C172S
29 * /instrumentation/airspeed-indicator/indicated-speed-kt
31 class Annunciator : public FGSubsystem
35 double timer0; // used to sync flashing
42 SGPropertyNode *_volts;
43 SGPropertyNode *_vac_l;
44 SGPropertyNode *_vac_r;
45 SGPropertyNode *_fuel_l;
46 SGPropertyNode *_fuel_r;
47 SGPropertyNode *_oil_px;
50 SGPropertyNode *_ann_volts; // VOLTS (red)
51 SGPropertyNode *_ann_vac_l; // L VAC (amber)
52 SGPropertyNode *_ann_vac_r; // VAC R (amber
53 SGPropertyNode *_ann_fuel_l; // L LOW FUEL (amber)
54 SGPropertyNode *_ann_fuel_r; // LOW FUEL R (amber)
55 SGPropertyNode *_ann_oil_px; // OIL PRESS (red)
60 virtual ~Annunciator ();
63 virtual void update (double dt);
69 #endif // __INSTRUMENTS_ANNUNCIATOR_HXX