]> git.mxchange.org Git - flightgear.git/blob - src/Systems/pitot.hxx
Fixed so that ASI will indicate correctly (or at least, more
[flightgear.git] / src / Systems / pitot.hxx
1 // pitot.hxx - the pitot air system.
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 __SYSTEMS_PITOT_HXX
8 #define __SYSTEMS_PITOT_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 pitot air system.
20  *
21  * The output is the sum of static and dynamic pressure (not just the
22  * dynamic pressure).
23  *
24  * Input properties:
25  *
26  * /systems/pitot[0]/serviceable
27  * /environment/pressure-slugft3
28  * /environment/density-slugft3
29  * /velocities/airspeed-kt
30  *
31  * Output properties:
32  *
33  * /systems/pitot[0]/total-pressure-inhg
34  */
35 class PitotSystem : public FGSubsystem
36 {
37
38 public:
39
40     PitotSystem ();
41     virtual ~PitotSystem ();
42
43     virtual void init ();
44     virtual void bind ();
45     virtual void unbind ();
46     virtual void update (double dt);
47
48 private:
49
50     SGPropertyNode_ptr _serviceable_node;
51     SGPropertyNode_ptr _pressure_node;
52     SGPropertyNode_ptr _density_node;
53     SGPropertyNode_ptr _velocity_node;
54     SGPropertyNode_ptr _total_pressure_node;
55     
56 };
57
58 #endif // __SYSTEMS_PITOT_HXX