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/props/props.hxx>
15 #include <simgear/structure/subsystem_mgr.hxx>
21 * Model a vacuum-powered attitude indicator.
25 * /instrumentation/"name"/config/tumble-flag
26 * /instrumentation/"name"/serviceable
27 * /instrumentation/"name"/caged-flag
28 * /instrumentation/"name"/tumble-norm
29 * /orientation/pitch-deg
30 * /orientation/roll-deg
31 * "vacuum-system"/suction-inhg
35 * /instrumentation/"name"/indicated-pitch-deg
36 * /instrumentation/"name"/indicated-roll-deg
37 * /instrumentation/"name"/tumble-norm
39 class AttitudeIndicator : public SGSubsystem
44 AttitudeIndicator ( SGPropertyNode *node );
45 virtual ~AttitudeIndicator ();
48 virtual void reinit ();
50 virtual void unbind ();
51 virtual void update (double dt);
61 SGPropertyNode_ptr _tumble_flag_node;
62 SGPropertyNode_ptr _caged_node;
63 SGPropertyNode_ptr _tumble_node;
64 SGPropertyNode_ptr _pitch_in_node;
65 SGPropertyNode_ptr _roll_in_node;
66 SGPropertyNode_ptr _suction_node;
67 SGPropertyNode_ptr _pitch_int_node;
68 SGPropertyNode_ptr _roll_int_node;
69 SGPropertyNode_ptr _pitch_out_node;
70 SGPropertyNode_ptr _roll_out_node;
73 double max_roll_error;
74 double max_pitch_error;
77 #endif // __INSTRUMENTS_ATTITUDE_INDICATOR_HXX