]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/airspeed_indicator.hxx
Added pitot system and new airspeed indicator.
[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/misc/props.hxx>
15 #include <Main/fgfs.hxx>
16
17
18 /**
19  * Model an airspeed indicator tied to the pitot and static ports.
20  *
21  * Input properties:
22  *
23  * /instrumentation/airspeed-indicator/serviceable
24  * /systems/pitot[0]/total-pressure-inhg
25  * /systems/static[0]/pressure-inhg
26  *
27  * Output properties:
28  *
29  * /instrumentation/airspeed-indicator/indicated-speed-kt
30  */
31 class AirspeedIndicator : public FGSubsystem
32 {
33
34 public:
35
36     AirspeedIndicator ();
37     virtual ~AirspeedIndicator ();
38
39     virtual void init ();
40     virtual void bind ();
41     virtual void unbind ();
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 _speed_node;
50     
51 };
52
53 #endif // __INSTRUMENTS_AIRSPEED_INDICATOR_HXX