X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fairspeed_indicator.hxx;h=1df6fe09b482a819ebb6f5c30f2dd438a24b1997;hb=6acf1c12fc02d6dfd29de894b033ce163640d7ae;hp=0a35406ae4fd59b4f6a93a91d64d742b4a7012fe;hpb=93237f1b379a536554fa5eaabd7ba1861c609ea4;p=flightgear.git diff --git a/src/Instrumentation/airspeed_indicator.hxx b/src/Instrumentation/airspeed_indicator.hxx index 0a35406ae..1df6fe09b 100644 --- a/src/Instrumentation/airspeed_indicator.hxx +++ b/src/Instrumentation/airspeed_indicator.hxx @@ -1,6 +1,7 @@ // airspeed_indicator.hxx - a regular VSI tied to the static port. // Written by David Megginson, started 2002. // +// Last modified by Eric van den Berg, 24 Nov 2012 // This file is in the Public Domain and comes with no warranty. @@ -14,6 +15,9 @@ #include #include +// forward decls +class FGEnvironmentMgr; + /** * Model an airspeed indicator tied to the pitot and static ports. * @@ -27,6 +31,8 @@ * Output properties: * * /instrumentation/"name"/indicated-speed-kt + * /instrumentation/"name"/true-speed-kt + * /instrumentation/"name"/indicated-mach */ class AirspeedIndicator : public SGSubsystem { @@ -41,7 +47,7 @@ public: virtual void update (double dt); private: - void computeMach(double ias); + void computeMach(); std::string _name; unsigned int _num; @@ -65,8 +71,8 @@ private: SGPropertyNode_ptr _pressure_alt; SGPropertyNode_ptr _mach_node; SGPropertyNode_ptr _tas_node; - SGPropertyNode_ptr _sea_level_pressure_node; - SGPropertyNode_ptr _oat_celsius_node; + + FGEnvironmentMgr* _environmentManager; }; #endif // __INSTRUMENTS_AIRSPEED_INDICATOR_HXX