1 // altimeter.hxx - an altimeter 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_ALTIMETER_HXX
8 #define __INSTRUMENTS_ALTIMETER_HXX 1
11 # error This library requires C++
14 #include <simgear/props/props.hxx>
15 #include <simgear/structure/subsystem_mgr.hxx>
22 * Model a barometric altimeter tied to the static port.
26 * /instrumentation/<name>/serviceable
27 * /instrumentation/<name>/setting-inhg
32 * /instrumentation/<name>/indicated-altitude-ft
34 class Altimeter : public SGSubsystem
39 Altimeter (SGPropertyNode *node);
40 virtual ~Altimeter ();
43 virtual void update (double dt);
49 string _static_pressure;
51 SGPropertyNode_ptr _serviceable_node;
52 SGPropertyNode_ptr _setting_node;
53 SGPropertyNode_ptr _pressure_node;
54 SGPropertyNode_ptr _altitude_node;
56 SGInterpTable * _altitude_table;
60 #endif // __INSTRUMENTS_ALTIMETER_HXX