]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/attitude_indicator.hxx
26196eb032170ce753fcec0d75549ea9137a1f29
[flightgear.git] / src / Instrumentation / attitude_indicator.hxx
1 // attitude_indicator.hxx - a vacuum-powered attitude indicator.
2 // Written by David Megginson, started 2002.
3 //
4 // This file is in the Public Domain and comes with no warranty.
5
6
7 #ifndef __INSTRUMENTS_ATTITUDE_INDICATOR_HXX
8 #define __INSTRUMENTS_ATTITUDE_INDICATOR_HXX 1
9
10 #ifndef __cplusplus
11 # error This library requires C++
12 #endif
13
14 #include <simgear/misc/props.hxx>
15 #include <Main/fgfs.hxx>
16
17
18 /**
19  * Model a vacuum-powered attitude indicator.
20  *
21  * This first, simple draft is hard-wired to vacuum pump #1.
22  *
23  * Input properties:
24  *
25  * /instrumentation/attitude-indicator/serviceable
26  * /instrumentation/attitude-indicator/spin
27  * /orientation/pitch-deg
28  * /orientation/roll-deg
29  * /systems/vacuum[0]/suction-inhg
30  *
31  * Output properties:
32  *
33  * /instrumentation/attitude-indicator/indicated-pitch-deg
34  * /instrumentation/attitude-indicator/indicated-roll-deg
35  */
36 class AttitudeIndicator : public FGSubsystem
37 {
38
39 public:
40
41     AttitudeIndicator ();
42     virtual ~AttitudeIndicator ();
43
44     virtual void init ();
45     virtual void bind ();
46     virtual void unbind ();
47     virtual void update (double dt);
48
49 private:
50
51     SGPropertyNode_ptr _serviceable_node;
52     SGPropertyNode_ptr _spin_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;
58     
59 };
60
61 #endif // __INSTRUMENTS_ATTITUDE_INDICATOR_HXX