X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Faltimeter.hxx;h=121cafa7ce72b2ea1af6a8c0bc146112b09d8fca;hb=ccb890447ae2f950b8032649ca8b8190bdafaf90;hp=a2ad87969bba47dbde20c93ee070e91e6b65a539;hpb=b1b4b7ecf48c4420d4445979c36cbf3f80be616a;p=flightgear.git diff --git a/src/Instrumentation/altimeter.hxx b/src/Instrumentation/altimeter.hxx index a2ad87969..121cafa7c 100644 --- a/src/Instrumentation/altimeter.hxx +++ b/src/Instrumentation/altimeter.hxx @@ -9,6 +9,7 @@ #define __INSTRUMENTS_ALTIMETER_HXX 1 #include +#include #include #include @@ -35,26 +36,34 @@ public: virtual ~Altimeter (); virtual void init (); + virtual void reinit (); virtual void update (double dt); + virtual void bind(); + virtual void unbind(); -private: + double getSettingInHg() const; + void setSettingInHg( double value ); + double getSettingHPa() const; + void setSettingHPa( double value ); - std::string _name; - int _num; +private: + SGPropertyNode_ptr _rootNode; string _static_pressure; double _tau; double _quantum; double _kollsman; - double raw_PA; + double _raw_PA; + double _settingInHg; SGPropertyNode_ptr _serviceable_node; - SGPropertyNode_ptr _setting_node; SGPropertyNode_ptr _pressure_node; SGPropertyNode_ptr _press_alt_node; SGPropertyNode_ptr _mode_c_node; SGPropertyNode_ptr _altitude_node; FGAltimeter _altimeter; + + simgear::TiedPropertyList _tiedProperties; }; #endif // __INSTRUMENTS_ALTIMETER_HXX