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_HXX
8 #define __INSTRUMENTS_HEADING_INDICATOR_HXX 1
11 # error This library requires C++
14 #include <simgear/props/props.hxx>
15 #include <simgear/structure/subsystem_mgr.hxx>
21 * Model a vacuum-powered heading indicator.
25 * /instrumentation/"name"/serviceable
26 * /instrumentation/"name"/spin
27 * /instrumentation/"name"/offset-deg
28 * /orientation/heading-deg
29 * "vacuum_system"/suction-inhg
33 * /instrumentation/"name"/indicated-heading-deg
35 class HeadingIndicator : public SGSubsystem
40 HeadingIndicator ( SGPropertyNode *node );
42 virtual ~HeadingIndicator ();
46 virtual void unbind ();
47 virtual void update (double dt);
52 double _last_heading_deg;
58 SGPropertyNode_ptr _offset_node;
59 SGPropertyNode_ptr _heading_in_node;
60 SGPropertyNode_ptr _suction_node;
61 SGPropertyNode_ptr _heading_out_node;
65 #endif // __INSTRUMENTS_HEADING_INDICATOR_HXX