]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/airspeed_indicator.hxx
ADF: code clean-up/documentation
[flightgear.git] / src / Instrumentation / airspeed_indicator.hxx
index 7948ed2f22a9b73956a31222363702ea0270b208..26dd15a525167c1b63c2a25e12289c07a1443741 100644 (file)
@@ -14,6 +14,8 @@
 #include <simgear/props/props.hxx>
 #include <simgear/structure/subsystem_mgr.hxx>
 
+// forward decls
+class FGEnvironmentMgr;
 
 /**
  * Model an airspeed indicator tied to the pitot and static ports.
@@ -41,12 +43,18 @@ 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;
-    bool _has_barber_pole;
+    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;
@@ -57,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