]> git.mxchange.org Git - flightgear.git/blob - src/Systems/pitot.hxx
This is step "1" of probably "many" in the process of separating out the
[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/props/props.hxx>
15
16 #include <Main/fgfs.hxx>
17
18
19 /**
20  * Model a pitot air system.
21  *
22  * The output is the sum of static and dynamic pressure (not just the
23  * dynamic pressure).
24  *
25  * Input properties:
26  *
27  * /systems/pitot[0]/serviceable
28  * /environment/pressure-slugft3
29  * /environment/density-slugft3
30  * /velocities/airspeed-kt
31  *
32  * Output properties:
33  *
34  * /systems/pitot[0]/total-pressure-inhg
35  */
36 class PitotSystem : public FGSubsystem
37 {
38
39 public:
40
41     PitotSystem ();
42     virtual ~PitotSystem ();
43
44     virtual void init ();
45     virtual void bind ();
46     virtual void unbind ();
47     virtual void update (double dt);
48
49 private:
50
51     SGPropertyNode_ptr _serviceable_node;
52     SGPropertyNode_ptr _pressure_node;
53     SGPropertyNode_ptr _density_node;
54     SGPropertyNode_ptr _velocity_node;
55     SGPropertyNode_ptr _total_pressure_node;
56     
57 };
58
59 #endif // __SYSTEMS_PITOT_HXX