1 // vertical_speed_indicator.hxx - a regular VSI tied to the static port.
2 // Written by David Megginson, started 2002.
4 // Last change by E. van den Berg, 17.02.1013
6 // This file is in the Public Domain and comes with no warranty.
9 #ifndef __INSTRUMENTS_VERTICAL_SPEED_INDICATOR_HXX
10 #define __INSTRUMENTS_VERTICAL_SPEED_INDICATOR_HXX 1
13 # error This library requires C++
16 #include <simgear/props/props.hxx>
17 #include <simgear/structure/subsystem_mgr.hxx>
21 * Model a non-instantaneous VSI tied to the static port.
25 * /instrumentation/"name"/serviceable
26 * "static_port"/pressure-inhg
30 * /instrumentation/"name"/indicated-speed-fpm
31 * /instrumentation/"name"/indicated-speed-mps
32 * /instrumentation/"name"/indicated-speed-kts
34 class VerticalSpeedIndicator : public SGSubsystem
39 VerticalSpeedIndicator ( SGPropertyNode *node );
40 virtual ~VerticalSpeedIndicator ();
43 virtual void reinit ();
44 virtual void update (double dt);
48 double _casing_pressure_Pa;
49 double _casing_airmass_kg;
50 double _casing_density_kgpm3;
51 double _orifice_massflow_kgps;
55 std::string _static_pressure;
56 std::string _static_temperature;
58 SGPropertyNode_ptr _serviceable_node;
59 SGPropertyNode_ptr _pressure_node;
60 SGPropertyNode_ptr _temperature_node;
61 SGPropertyNode_ptr _speed_fpm_node;
62 SGPropertyNode_ptr _speed_mps_node;
63 SGPropertyNode_ptr _speed_kts_node;
64 SGPropertyNode_ptr _speed_up_node;
68 #endif // __INSTRUMENTS_VERTICAL_SPEED_INDICATOR_HXX