1 // static.hxx - the static air system.
2 // Written by David Megginson, started 2002.
4 // Last modified by Eric van den Berg, 09 November 2013
5 // This file is in the Public Domain and comes with no warranty.
8 #ifndef __SYSTEMS_STATIC_HXX
9 #define __SYSTEMS_STATIC_HXX 1
12 # error This library requires C++
15 #include <simgear/props/props.hxx>
16 #include <simgear/structure/subsystem_mgr.hxx>
20 * Model a static air system.
24 * /environment/pressure-inhg
25 * /systems/"name"/serviceable
26 * /orientation/alpha-deg
27 * /orientation/side-slip-rad
32 * /systems/"name"/pressure-inhg
34 * TODO: support alternate air with errors
36 class StaticSystem : public SGSubsystem
41 StaticSystem ( SGPropertyNode *node );
42 StaticSystem ( int i );
43 virtual ~StaticSystem ();
46 virtual void reinit ();
48 virtual void unbind ();
49 virtual void update (double dt);
58 SGPropertyNode_ptr _serviceable_node;
59 SGPropertyNode_ptr _pressure_in_node;
60 SGPropertyNode_ptr _pressure_out_node;
61 SGPropertyNode_ptr _beta_node;
62 SGPropertyNode_ptr _alpha_node;
63 SGPropertyNode_ptr _mach_node;
67 #endif // __SYSTEMS_STATIC_HXX