]> git.mxchange.org Git - flightgear.git/blob - src/Systems/static.hxx
Added static port system and a new altimeter model connected to it.
[flightgear.git] / src / Systems / static.hxx
1 // static.hxx - the static 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_STATIC_HXX
8 #define __SYSTEMS_STATIC_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 static air system.
20  *
21  * Input properties:
22  *
23  * /environment/pressure-inhg
24  * /systems/static[0]/serviceable
25  *
26  * Output properties:
27  *
28  * /systems/static[0]/pressure-inhg
29  *
30  * TODO: support multiple static ports and specific locations
31  * TODO: support alternate air with errors
32  */
33 class StaticSystem : public FGSubsystem
34 {
35
36 public:
37
38     StaticSystem ();
39     virtual ~StaticSystem ();
40
41     virtual void init ();
42     virtual void bind ();
43     virtual void unbind ();
44     virtual void update (double dt);
45
46 private:
47
48     SGPropertyNode_ptr _serviceable_node;
49     SGPropertyNode_ptr _pressure_in_node;
50     SGPropertyNode_ptr _pressure_out_node;
51     
52 };
53
54 #endif // __SYSTEMS_STATIC_HXX