1 // inst_vertical_speed_indicator.hxx -- Instantaneous VSI (emulation calibrated to standard atmosphere).
3 // Started September 2004.
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #ifndef __INST_VERTICAL_SPEED_INDICATOR_HXX
23 #define __INST_VERTICAL_SPEED_INDICATOR_HXX 1
26 # error This library requires C++
29 #include <simgear/props/props.hxx>
30 #include <simgear/structure/subsystem_mgr.hxx>
37 * Model an instantaneous VSI tied to the external pressure.
41 * /instrumentation/inst-vertical-speed-indicator/serviceable
42 * /environment/pressure-inhg
43 * /environment/pressure-sea-level-inhg
49 * /instrumentation/inst-vertical-speed-indicator/indicated-speed-fps
50 * /instrumentation/inst-vertical-speed-indicator/indicated-speed-fpm
52 class InstVerticalSpeedIndicator : public SGSubsystem
57 InstVerticalSpeedIndicator ( SGPropertyNode *node );
58 virtual ~InstVerticalSpeedIndicator ();
61 virtual void update (double dt);
65 double _internal_pressure_inhg;
66 double _internal_sea_inhg;
68 double _speed_ft_per_s;
73 SGPropertyNode_ptr _serviceable_node;
74 SGPropertyNode_ptr _freeze_node;
75 SGPropertyNode_ptr _pressure_node;
76 SGPropertyNode_ptr _sea_node;
77 SGPropertyNode_ptr _speed_up_node;
78 SGPropertyNode_ptr _speed_node;
79 SGPropertyNode_ptr _speed_min_node;
81 SGInterpTable * _pressure_table;
82 SGInterpTable * _altitude_table;
85 #endif // __INST_VERTICAL_SPEED_INDICATOR_HXX