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_ptr _volts;
42 SGPropertyNode_ptr _vac_l;
43 SGPropertyNode_ptr _vac_r;
44 SGPropertyNode_ptr _fuel_l;
45 SGPropertyNode_ptr _fuel_r;
46 SGPropertyNode_ptr _oil_px;
47 SGPropertyNode_ptr _elec_serv;
50 SGPropertyNode_ptr _ann_volts; // VOLTS (red)
51 SGPropertyNode_ptr _ann_vac_l; // L VAC (amber)
52 SGPropertyNode_ptr _ann_vac_r; // VAC R (amber
53 SGPropertyNode_ptr _ann_fuel_l; // L LOW FUEL (amber)
54 SGPropertyNode_ptr _ann_fuel_r; // LOW FUEL R (amber)
55 SGPropertyNode_ptr _ann_oil_px; // OIL PRESS (red)
60 virtual ~Annunciator ();
63 virtual void update (double dt);
69 #endif // __INSTRUMENTS_ANNUNCIATOR_HXX