X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fairspeed_indicator.hxx;h=26dd15a525167c1b63c2a25e12289c07a1443741;hb=0b9adf8854398461333eba43df18fa2f5c8231a1;hp=6f10b9ddb01a5fab3154e6e08891cd8171419759;hpb=f614545fc5a6f0fb12a05344d9ee41b2a49cc04a;p=flightgear.git diff --git a/src/Instrumentation/airspeed_indicator.hxx b/src/Instrumentation/airspeed_indicator.hxx index 6f10b9ddb..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. @@ -35,24 +37,38 @@ class AirspeedIndicator : public SGSubsystem public: AirspeedIndicator ( SGPropertyNode *node ); - AirspeedIndicator ( int i); virtual ~AirspeedIndicator (); virtual void init (); virtual void update (double dt); private: + void computeMach(double ias); - string name; - int num; - string pitot_port; - string static_port; + std::string _name; + unsigned int _num; + string _total_pressure; + string _static_pressure; + bool _has_overspeed; + string _pressure_alt_source; + double _ias_limit; + double _mach_limit; + double _alt_threshold; + + SGPropertyNode_ptr _ias_limit_node; + SGPropertyNode_ptr _mach_limit_node; + SGPropertyNode_ptr _alt_threshold_node; SGPropertyNode_ptr _serviceable_node; SGPropertyNode_ptr _total_pressure_node; SGPropertyNode_ptr _static_pressure_node; SGPropertyNode_ptr _density_node; SGPropertyNode_ptr _speed_node; + SGPropertyNode_ptr _airspeed_limit; + SGPropertyNode_ptr _pressure_alt; + SGPropertyNode_ptr _mach_node; + SGPropertyNode_ptr _tas_node; + FGEnvironmentMgr* _environmentManager; }; #endif // __INSTRUMENTS_AIRSPEED_INDICATOR_HXX