]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/vertical_speed_indicator.hxx
remove old .cvsignore files
[flightgear.git] / src / Instrumentation / vertical_speed_indicator.hxx
1 // vertical_speed_indicator.hxx - a regular VSI tied to the static port.
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_VERTICAL_SPEED_INDICATOR_HXX
8 #define __INSTRUMENTS_VERTICAL_SPEED_INDICATOR_HXX 1
9
10 #ifndef __cplusplus
11 # error This library requires C++
12 #endif
13
14 #include <simgear/props/props.hxx>
15 #include <simgear/structure/subsystem_mgr.hxx>
16
17
18 /**
19  * Model a non-instantaneous VSI tied to the static port.
20  *
21  * Input properties:
22  *
23  * /instrumentation/"name"/serviceable
24  * "static_port"/pressure-inhg
25  *
26  * Output properties:
27  *
28  * /instrumentation/"name"/indicated-speed-fpm
29  */
30 class VerticalSpeedIndicator : public SGSubsystem
31 {
32
33 public:
34
35     VerticalSpeedIndicator ( SGPropertyNode *node );
36     virtual ~VerticalSpeedIndicator ();
37
38     virtual void init ();
39     virtual void update (double dt);
40
41 private:
42
43     double _internal_pressure_inhg;
44
45     string _name;
46     int _num;
47     string _static_pressure;
48
49     SGPropertyNode_ptr _serviceable_node;
50     SGPropertyNode_ptr _pressure_node;
51     SGPropertyNode_ptr _speed_node;
52     
53 };
54
55 #endif // __INSTRUMENTS_VERTICAL_SPEED_INDICATOR_HXX