1 // altimeter.hxx - an altimeter tied to the static port.
2 // Written by David Megginson, started 2002.
3 // Updated by John Denker to match changes in altimeter.cxx in 2007
5 // This file is in the Public Domain and comes with no warranty.
8 #ifndef __INSTRUMENTS_ALTIMETER_HXX
9 #define __INSTRUMENTS_ALTIMETER_HXX 1
11 #include <simgear/props/props.hxx>
12 #include <simgear/structure/subsystem_mgr.hxx>
13 #include <Environment/atmosphere.hxx>
17 * Model a barometric altimeter tied to the static port.
21 * /instrumentation/<name>/serviceable
22 * /instrumentation/<name>/setting-inhg
27 * /instrumentation/<name>/indicated-altitude-ft
29 class Altimeter : public SGSubsystem
34 Altimeter (SGPropertyNode *node, double quantum = 0);
35 virtual ~Altimeter ();
38 virtual void update (double dt);
44 string _static_pressure;
50 SGPropertyNode_ptr _serviceable_node;
51 SGPropertyNode_ptr _setting_node;
52 SGPropertyNode_ptr _pressure_node;
53 SGPropertyNode_ptr _press_alt_node;
54 SGPropertyNode_ptr _mode_c_node;
55 SGPropertyNode_ptr _altitude_node;
57 FGAltimeter _altimeter;
60 #endif // __INSTRUMENTS_ALTIMETER_HXX