1 // pitot.hxx - the pitot air system.
2 // Written by David Megginson, started 2002.
4 // Last modified by Eric van den Berg, 01 Nov 2013
5 // This file is in the Public Domain and comes with no warranty.
8 #ifndef __SYSTEMS_PITOT_HXX
9 #define __SYSTEMS_PITOT_HXX 1
12 # error This library requires C++
15 #include <simgear/compiler.h>
20 #include <simgear/props/props.hxx>
21 #include <simgear/structure/subsystem_mgr.hxx>
25 * Model a pitot air system.
27 * The output is the sum of static and dynamic pressure (not just the
32 * /systems/"name"/serviceable
33 * /environment/pressure-inhg
38 * /systems/"name"/total-pressure-inhg
39 * /systems/"name"/measured-total-pressure-inhg
41 class PitotSystem : public SGSubsystem
46 PitotSystem ( SGPropertyNode *node );
47 virtual ~PitotSystem ();
51 virtual void unbind ();
52 virtual void update (double dt);
59 SGPropertyNode_ptr _serviceable_node;
60 SGPropertyNode_ptr _pressure_node;
61 SGPropertyNode_ptr _mach_node;
62 SGPropertyNode_ptr _total_pressure_node;
63 SGPropertyNode_ptr _measured_total_pressure_node;
64 SGPropertyNode_ptr _alpha_deg_node;
65 SGPropertyNode_ptr _beta_deg_node;
68 #endif // __SYSTEMS_PITOT_HXX