1 // heading_indicator.hxx - a vacuum-powered heading indicator.
2 // Written by David Megginson, started 2002.
4 // This file is in the Public Domain and comes with no warranty.
7 #ifndef __INSTRUMENTS_HEADING_INDICATOR_ELEC_HXX
8 #define __INSTRUMENTS_HEADING_INDICATOR_ELEC_HXX 1
11 #include <simgear/props/props.hxx>
12 #include <simgear/structure/subsystem_mgr.hxx>
18 * Model an electrically-powered heading indicator.
22 * /instrumentation/"name"/serviceable
23 * /instrumentation/"name"/spin
24 * /instrumentation/"name"/offset-deg
25 * /orientation/heading-deg
26 * /systems/electrical/outputs/DG
30 * /instrumentation/"name"/indicated-heading-deg
32 class HeadingIndicatorDG : public SGSubsystem
37 HeadingIndicatorDG ( SGPropertyNode *node );
38 HeadingIndicatorDG ();
39 virtual ~HeadingIndicatorDG ();
43 virtual void unbind ();
44 virtual void update (double dt);
49 double _last_heading_deg;
53 //string vacuum_system;
55 SGPropertyNode_ptr _offset_node;
56 SGPropertyNode_ptr _heading_in_node;
57 SGPropertyNode_ptr _serviceable_node;
58 SGPropertyNode_ptr _heading_out_node;
59 SGPropertyNode_ptr _electrical_node;
60 SGPropertyNode_ptr _error_node;
61 SGPropertyNode_ptr _nav1_error_node;
64 #endif // __INSTRUMENTS_HEADING_INDICATOR_ELEC_HXX