1 // vertical_speed_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_VERTICAL_SPEED_INDICATOR_HXX
8 #define __INSTRUMENTS_VERTICAL_SPEED_INDICATOR_HXX 1
11 # error This library requires C++
14 #include <simgear/misc/props.hxx>
15 #include <Main/fgfs.hxx>
19 * Model a non-instantaneous VSI tied to the static port.
23 * /instrumentation/vertical-speed-indicator/serviceable
24 * /systems/static[0]/pressure-inhg
28 * /instrumentation/vertical-speed-indicator/indicated-speed-fpm
30 class VerticalSpeedIndicator : public FGSubsystem
35 VerticalSpeedIndicator ();
36 virtual ~VerticalSpeedIndicator ();
39 virtual void update (double dt);
43 double _internal_pressure_inhg;
45 SGPropertyNode_ptr _serviceable_node;
46 SGPropertyNode_ptr _pressure_node;
47 SGPropertyNode_ptr _speed_node;
51 #endif // __INSTRUMENTS_VERTICAL_SPEED_INDICATOR_HXX