1 // airspeed_indicator.hxx - a regular VSI tied to the static port.
2 // Written by David Megginson, started 2002.
4 // Last modified by Eric van den Berg, 24 Nov 2012
5 // This file is in the Public Domain and comes with no warranty.
8 #ifndef __INSTRUMENTS_AIRSPEED_INDICATOR_HXX
9 #define __INSTRUMENTS_AIRSPEED_INDICATOR_HXX 1
12 # error This library requires C++
15 #include <simgear/props/props.hxx>
16 #include <simgear/structure/subsystem_mgr.hxx>
19 class FGEnvironmentMgr;
22 * Model an airspeed indicator tied to the pitot and static ports.
26 * /instrumentation/"name"/serviceable
27 * "pitot_port"/total-pressure-inhg
28 * "static_port"/pressure-inhg
29 * /environment/density-slugft3
33 * /instrumentation/"name"/indicated-speed-kt
34 * /instrumentation/"name"/true-speed-kt
35 * /instrumentation/"name"/indicated-mach
37 class AirspeedIndicator : public SGSubsystem
42 AirspeedIndicator ( SGPropertyNode *node );
43 virtual ~AirspeedIndicator ();
46 virtual void reinit ();
47 virtual void update (double dt);
54 std::string _total_pressure;
55 std::string _static_pressure;
57 std::string _pressure_alt_source;
60 double _alt_threshold;
62 SGPropertyNode_ptr _ias_limit_node;
63 SGPropertyNode_ptr _mach_limit_node;
64 SGPropertyNode_ptr _alt_threshold_node;
65 SGPropertyNode_ptr _serviceable_node;
66 SGPropertyNode_ptr _total_pressure_node;
67 SGPropertyNode_ptr _static_pressure_node;
68 SGPropertyNode_ptr _density_node;
69 SGPropertyNode_ptr _speed_node;
70 SGPropertyNode_ptr _airspeed_limit;
71 SGPropertyNode_ptr _pressure_alt;
72 SGPropertyNode_ptr _mach_node;
73 SGPropertyNode_ptr _tas_node;
75 FGEnvironmentMgr* _environmentManager;
78 #endif // __INSTRUMENTS_AIRSPEED_INDICATOR_HXX