]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/heading_indicator_dg.hxx
remove old .cvsignore files
[flightgear.git] / src / Instrumentation / heading_indicator_dg.hxx
1 // heading_indicator.hxx - a vacuum-powered heading 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_HEADING_INDICATOR_ELEC_HXX
8 #define __INSTRUMENTS_HEADING_INDICATOR_ELEC_HXX 1
9
10
11 #include <simgear/props/props.hxx>
12 #include <simgear/structure/subsystem_mgr.hxx>
13
14 #include "gyro.hxx"
15
16
17 /**
18  * Model an electrically-powered heading indicator.
19  *
20  * Input properties:
21  *
22  * /instrumentation/"name"/serviceable
23  * /instrumentation/"name"/spin
24  * /instrumentation/"name"/offset-deg
25  * /orientation/heading-deg
26  * /systems/electrical/outputs/DG
27  *
28  * Output properties:
29  *
30  * /instrumentation/"name"/indicated-heading-deg
31  */
32 class HeadingIndicatorDG : public SGSubsystem
33 {
34
35 public:
36
37     HeadingIndicatorDG ( SGPropertyNode *node );
38     HeadingIndicatorDG ();
39     virtual ~HeadingIndicatorDG ();
40
41     virtual void init ();
42     virtual void bind ();
43     virtual void unbind ();
44     virtual void update (double dt);
45
46 private:
47
48     Gyro _gyro;
49     double _last_heading_deg;
50
51     string name;
52     int num;
53     //string vacuum_system;
54
55     SGPropertyNode_ptr _offset_node;
56     SGPropertyNode_ptr _heading_in_node;
57     SGPropertyNode_ptr _serviceable_node;
58     SGPropertyNode_ptr _heading_out_node;
59     SGPropertyNode_ptr _electrical_node;
60     SGPropertyNode_ptr _error_node;
61     SGPropertyNode_ptr _nav1_error_node;
62 };
63
64 #endif // __INSTRUMENTS_HEADING_INDICATOR_ELEC_HXX