1 // airspeed_indicator.hxx - a regular VSI tied to the static port.
2 // Written by David Megginson, started 2002.
4 // This file is in the Public Domain and comes with no warranty.
7 #ifndef __INSTRUMENTS_AIRSPEED_INDICATOR_HXX
8 #define __INSTRUMENTS_AIRSPEED_INDICATOR_HXX 1
11 # error This library requires C++
14 #include <simgear/props/props.hxx>
15 #include <simgear/structure/subsystem_mgr.hxx>
19 * Model an airspeed indicator tied to the pitot and static ports.
23 * /instrumentation/"name"/serviceable
24 * "pitot_port"/total-pressure-inhg
25 * "static_port"/pressure-inhg
26 * /environment/density-slugft3
30 * /instrumentation/"name"/indicated-speed-kt
32 class AirspeedIndicator : public SGSubsystem
37 AirspeedIndicator ( SGPropertyNode *node );
38 virtual ~AirspeedIndicator ();
41 virtual void update (double dt);
47 string _total_pressure;
48 string _static_pressure;
49 SGPropertyNode_ptr _serviceable_node;
50 SGPropertyNode_ptr _total_pressure_node;
51 SGPropertyNode_ptr _static_pressure_node;
52 SGPropertyNode_ptr _density_node;
53 SGPropertyNode_ptr _speed_node;
57 #endif // __INSTRUMENTS_AIRSPEED_INDICATOR_HXX