X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fairspeed_indicator.hxx;h=1df6fe09b482a819ebb6f5c30f2dd438a24b1997;hb=6acf1c12fc02d6dfd29de894b033ce163640d7ae;hp=41e544c66704228c89c5da84fef7fb4bdbf08eae;hpb=6989f4fb355bf39001aadeb6bee187d5a337b58a;p=flightgear.git diff --git a/src/Instrumentation/airspeed_indicator.hxx b/src/Instrumentation/airspeed_indicator.hxx index 41e544c66..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. @@ -30,6 +31,8 @@ class FGEnvironmentMgr; * Output properties: * * /instrumentation/"name"/indicated-speed-kt + * /instrumentation/"name"/true-speed-kt + * /instrumentation/"name"/indicated-mach */ class AirspeedIndicator : public SGSubsystem { @@ -40,17 +43,18 @@ public: virtual ~AirspeedIndicator (); virtual void init (); + virtual void reinit (); virtual void update (double dt); private: - void computeMach(double ias); + void computeMach(); - string _name; + std::string _name; unsigned int _num; - string _total_pressure; - string _static_pressure; + std::string _total_pressure; + std::string _static_pressure; bool _has_overspeed; - string _pressure_alt_source; + std::string _pressure_alt_source; double _ias_limit; double _mach_limit; double _alt_threshold;