1 // attitude_indicator.hxx - a vacuum-powered attitude indicator.
2 // Written by David Megginson, started 2002.
4 // This file is in the Public Domain and comes with no warranty.
7 #ifndef __INSTRUMENTS_ATTITUDE_INDICATOR_HXX
8 #define __INSTRUMENTS_ATTITUDE_INDICATOR_HXX 1
11 # error This library requires C++
14 #include <simgear/misc/props.hxx>
15 #include <Main/fgfs.hxx>
19 * Model a vacuum-powered attitude indicator.
21 * This first, simple draft is hard-wired to vacuum pump #1.
25 * /instrumentation/attitude-indicator/serviceable
26 * /orientation/pitch-deg
27 * /orientation/roll-deg
28 * /systems/vacuum[0]/suction-inhg
32 * /instrumentation/attitude-indicator/indicated-pitch-deg
33 * /instrumentation/attitude-indicator/indicated-roll-deg
35 class AttitudeIndicator : public FGSubsystem
41 virtual ~AttitudeIndicator ();
45 virtual void unbind ();
46 virtual void update (double dt);
52 SGPropertyNode_ptr _serviceable_node;
53 SGPropertyNode_ptr _pitch_in_node;
54 SGPropertyNode_ptr _roll_in_node;
55 SGPropertyNode_ptr _suction_node;
56 SGPropertyNode_ptr _pitch_out_node;
57 SGPropertyNode_ptr _roll_out_node;
61 #endif // __INSTRUMENTS_ATTITUDE_INDICATOR_HXX