]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/airspeed_indicator.hxx
Set the initial log-level back to info
[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  * /environment/density-slugft3
27  *
28  * Output properties:
29  *
30  * /instrumentation/airspeed-indicator/indicated-speed-kt
31  */
32 class AirspeedIndicator : public FGSubsystem
33 {
34
35 public:
36
37     AirspeedIndicator ();
38     virtual ~AirspeedIndicator ();
39
40     virtual void init ();
41     virtual void update (double dt);
42
43 private:
44
45     SGPropertyNode_ptr _serviceable_node;
46     SGPropertyNode_ptr _total_pressure_node;
47     SGPropertyNode_ptr _static_pressure_node;
48     SGPropertyNode_ptr _density_node;
49     SGPropertyNode_ptr _speed_node;
50     
51 };
52
53 #endif // __INSTRUMENTS_AIRSPEED_INDICATOR_HXX