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_FG_HXX
8 #define __INSTRUMENTS_HEADING_INDICATOR_FG_HXX 1
11 # error This library requires C++
14 #include <simgear/props/props.hxx>
15 #include <simgear/structure/subsystem_mgr.hxx>
21 * Model an electically-powered fluxgate compass
25 * /instrumentation/"name"/serviceable
26 * /instrumentation/"name"/spin
27 * /instrumentation/"name"/offset-deg
28 * /orientation/heading-deg
29 * /systems/electrical/outputs/DG
33 * /instrumentation/"name"/indicated-heading-deg
35 class HeadingIndicatorFG : public SGSubsystem
40 HeadingIndicatorFG ( SGPropertyNode *node );
41 HeadingIndicatorFG ();
42 virtual ~HeadingIndicatorFG ();
46 virtual void unbind ();
47 virtual void update (double dt);
52 double _last_heading_deg;
57 SGPropertyNode_ptr _offset_node;
58 SGPropertyNode_ptr _heading_in_node;
59 SGPropertyNode_ptr _serviceable_node;
60 SGPropertyNode_ptr _heading_out_node;
61 SGPropertyNode_ptr _electrical_node;
62 SGPropertyNode_ptr _error_node;
63 SGPropertyNode_ptr _nav1_error_node;
64 SGPropertyNode_ptr _off_node;
70 #endif // __INSTRUMENTS_HEADING_INDICATOR_HXX