X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Faltimeter.hxx;h=f57c1ad37400d2503835dfdc4c6dde4ce2ef0d02;hb=9fa790bcac7e535bb06cd228ae15178f1b10b26f;hp=e5baae64c81f360312f6417b2bef37746bb58139;hpb=7e6bc192bad98454187ffe2b5521d28fe6b722a4;p=flightgear.git diff --git a/src/Instrumentation/altimeter.hxx b/src/Instrumentation/altimeter.hxx index e5baae64c..f57c1ad37 100644 --- a/src/Instrumentation/altimeter.hxx +++ b/src/Instrumentation/altimeter.hxx @@ -9,6 +9,7 @@ #define __INSTRUMENTS_ALTIMETER_HXX 1 #include +#include #include #include @@ -36,25 +37,32 @@ public: virtual void init (); 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 ); - string _name; - int _num; +private: + SGPropertyNode_ptr _rootNode; string _static_pressure; double _tau; double _quantum; double _kollsman; 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