]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/vertical_speed_indicator.hxx
Don't start paused for in air starts.
[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/misc/props.hxx>
15 #include <Main/fgfs.hxx>
16
17
18 /**
19  * Model a non-instantaneous VSI tied to the static port.
20  *
21  * Input properties:
22  *
23  * /instrumentation/vertical-speed-indicator/serviceable
24  * /systems/static[0]/pressure-inhg
25  *
26  * Output properties:
27  *
28  * /instrumentation/vertical-speed-indicator/indicated-speed-fpm
29  */
30 class VerticalSpeedIndicator : public FGSubsystem
31 {
32
33 public:
34
35     VerticalSpeedIndicator ();
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     SGPropertyNode_ptr _serviceable_node;
46     SGPropertyNode_ptr _pressure_node;
47     SGPropertyNode_ptr _speed_node;
48     
49 };
50
51 #endif // __INSTRUMENTS_VERTICAL_SPEED_INDICATOR_HXX