1 // pitot.hxx - the pitot air system.
2 // Written by David Megginson, started 2002.
4 // This file is in the Public Domain and comes with no warranty.
7 #ifndef __SYSTEMS_PITOT_HXX
8 #define __SYSTEMS_PITOT_HXX 1
11 # error This library requires C++
14 #include <simgear/compiler.h>
19 #include <simgear/props/props.hxx>
20 #include <simgear/structure/subsystem_mgr.hxx>
24 * Model a pitot air system.
26 * The output is the sum of static and dynamic pressure (not just the
31 * /systems/"name"/serviceable
32 * /environment/pressure-slugft3
33 * /environment/density-slugft3
34 * /velocities/airspeed-kt
38 * /systems/"name"/total-pressure-inhg
40 class PitotSystem : public SGSubsystem
45 PitotSystem ( SGPropertyNode *node );
46 virtual ~PitotSystem ();
50 virtual void unbind ();
51 virtual void update (double dt);
57 SGPropertyNode_ptr _serviceable_node;
58 SGPropertyNode_ptr _pressure_node;
59 SGPropertyNode_ptr _density_node;
60 SGPropertyNode_ptr _velocity_node;
61 SGPropertyNode_ptr _slip_angle;
62 SGPropertyNode_ptr _total_pressure_node;
65 #endif // __SYSTEMS_PITOT_HXX