]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/airspeed_indicator.hxx
Moved random ground cover object management code (userdata.[ch]xx) over
[flightgear.git] / src / Instrumentation / airspeed_indicator.hxx
1 // airspeed_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_AIRSPEED_INDICATOR_HXX
8 #define __INSTRUMENTS_AIRSPEED_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 an airspeed indicator tied to the pitot and static ports.
21  *
22  * Input properties:
23  *
24  * /instrumentation/airspeed-indicator/serviceable
25  * /systems/pitot[0]/total-pressure-inhg
26  * /systems/static[0]/pressure-inhg
27  * /environment/density-slugft3
28  *
29  * Output properties:
30  *
31  * /instrumentation/airspeed-indicator/indicated-speed-kt
32  */
33 class AirspeedIndicator : public FGSubsystem
34 {
35
36 public:
37
38     AirspeedIndicator ();
39     virtual ~AirspeedIndicator ();
40
41     virtual void init ();
42     virtual void update (double dt);
43
44 private:
45
46     SGPropertyNode_ptr _serviceable_node;
47     SGPropertyNode_ptr _total_pressure_node;
48     SGPropertyNode_ptr _static_pressure_node;
49     SGPropertyNode_ptr _density_node;
50     SGPropertyNode_ptr _speed_node;
51     
52 };
53
54 #endif // __INSTRUMENTS_AIRSPEED_INDICATOR_HXX