]> git.mxchange.org Git - flightgear.git/blob - src/Systems/static.hxx
Removed FGEnvironmentMgr as a special case in globals, initialization,
[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/props/props.hxx>
15
16 #include <Main/fgfs.hxx>
17
18
19 /**
20  * Model a static air system.
21  *
22  * Input properties:
23  *
24  * /environment/pressure-inhg
25  * /systems/static[0]/serviceable
26  *
27  * Output properties:
28  *
29  * /systems/static[0]/pressure-inhg
30  *
31  * TODO: support multiple static ports and specific locations
32  * TODO: support alternate air with errors
33  */
34 class StaticSystem : public FGSubsystem
35 {
36
37 public:
38
39     StaticSystem ();
40     virtual ~StaticSystem ();
41
42     virtual void init ();
43     virtual void bind ();
44     virtual void unbind ();
45     virtual void update (double dt);
46
47 private:
48
49     SGPropertyNode_ptr _serviceable_node;
50     SGPropertyNode_ptr _pressure_in_node;
51     SGPropertyNode_ptr _pressure_out_node;
52     
53 };
54
55 #endif // __SYSTEMS_STATIC_HXX