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/misc/props.hxx>
15 #include <Main/fgfs.hxx>
21 * Model a vacuum-powered heading indicator.
23 * This first, simple draft is hard-wired to vacuum pump #1.
27 * /instrumentation/heading-indicator/serviceable
28 * /instrumentation/heading-indicator/spin
29 * /instrumentation/heading-indicator/offset-deg
30 * /orientation/heading-deg
31 * /systems/vacuum[0]/suction-inhg
35 * /instrumentation/heading-indicator/indicated-heading-deg
37 class HeadingIndicator : public FGSubsystem
43 virtual ~HeadingIndicator ();
47 virtual void unbind ();
48 virtual void update (double dt);
53 double _last_heading_deg;
55 SGPropertyNode_ptr _offset_node;
56 SGPropertyNode_ptr _heading_in_node;
57 SGPropertyNode_ptr _suction_node;
58 SGPropertyNode_ptr _heading_out_node;
62 #endif // __INSTRUMENTS_HEADING_INDICATOR_HXX