X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fairspeed_indicator.hxx;h=26dd15a525167c1b63c2a25e12289c07a1443741;hb=0b9adf8854398461333eba43df18fa2f5c8231a1;hp=2248a61b62301e0940237d9620df2c734355ad5b;hpb=5a16a28893d08133cd46dd7c00dbb19b0cec9d9d;p=flightgear.git diff --git a/src/Instrumentation/airspeed_indicator.hxx b/src/Instrumentation/airspeed_indicator.hxx index 2248a61b6..26dd15a52 100644 --- a/src/Instrumentation/airspeed_indicator.hxx +++ b/src/Instrumentation/airspeed_indicator.hxx @@ -14,6 +14,8 @@ #include #include +// forward decls +class FGEnvironmentMgr; /** * Model an airspeed indicator tied to the pitot and static ports. @@ -41,8 +43,9 @@ public: virtual void update (double dt); private: + void computeMach(double ias); - string _name; + std::string _name; unsigned int _num; string _total_pressure; string _static_pressure; @@ -62,7 +65,10 @@ private: SGPropertyNode_ptr _speed_node; SGPropertyNode_ptr _airspeed_limit; SGPropertyNode_ptr _pressure_alt; - SGPropertyNode_ptr _mach; + SGPropertyNode_ptr _mach_node; + SGPropertyNode_ptr _tas_node; + + FGEnvironmentMgr* _environmentManager; }; #endif // __INSTRUMENTS_AIRSPEED_INDICATOR_HXX