]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/vertical_speed_indicator.hxx
Working at unraveling and breaking dependencies inside of src/Model.
[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
16 #include <Main/fgfs.hxx>
17
18
19 /**
20  * Model a non-instantaneous VSI tied to the static port.
21  *
22  * Input properties:
23  *
24  * /instrumentation/vertical-speed-indicator/serviceable
25  * /systems/static[0]/pressure-inhg
26  *
27  * Output properties:
28  *
29  * /instrumentation/vertical-speed-indicator/indicated-speed-fpm
30  */
31 class VerticalSpeedIndicator : public FGSubsystem
32 {
33
34 public:
35
36     VerticalSpeedIndicator ();
37     virtual ~VerticalSpeedIndicator ();
38
39     virtual void init ();
40     virtual void update (double dt);
41
42 private:
43
44     double _internal_pressure_inhg;
45
46     SGPropertyNode_ptr _serviceable_node;
47     SGPropertyNode_ptr _pressure_node;
48     SGPropertyNode_ptr _speed_node;
49     
50 };
51
52 #endif // __INSTRUMENTS_VERTICAL_SPEED_INDICATOR_HXX