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>
13 #include <simgear/structure/subsystem_mgr.hxx>
17 * Model the annunciators. This is innitially hard coded for a C172S
28 * /instrumentation/airspeed-indicator/indicated-speed-kt
30 class Annunciator : public SGSubsystem
34 double timer0; // used to sync flashing
41 SGPropertyNode *_volts;
42 SGPropertyNode *_vac_l;
43 SGPropertyNode *_vac_r;
44 SGPropertyNode *_fuel_l;
45 SGPropertyNode *_fuel_r;
46 SGPropertyNode *_oil_px;
47 SGPropertyNode *_elec_serv;
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