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/misc/props.hxx>
15 #include <Main/fgfs.hxx>
19 * Model a pitot air system.
21 * The output is the sum of static and dynamic pressure (not just the
26 * /systems/pitot[0]/serviceable
27 * /environment/pressure-slugft3
28 * /environment/density-slugft3
29 * /velocities/airspeed-kt
33 * /systems/pitot[0]/total-pressure-inhg
35 class PitotSystem : public FGSubsystem
41 virtual ~PitotSystem ();
45 virtual void unbind ();
46 virtual void update (double dt);
50 SGPropertyNode_ptr _serviceable_node;
51 SGPropertyNode_ptr _pressure_node;
52 SGPropertyNode_ptr _density_node;
53 SGPropertyNode_ptr _velocity_node;
54 SGPropertyNode_ptr _total_pressure_node;
58 #endif // __SYSTEMS_PITOT_HXX