]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/flight.hxx
bvh: Adapt to upstream bvh changes in simgear.
[flightgear.git] / src / FDM / flight.hxx
index 6965d30983e401c520e49eabaf8b0d8124439ef9..a2047aef90fe0a49eea5346b1b9fbafdddf64cca 100644 (file)
 #include <simgear/compiler.h>
 #include <simgear/constants.h>
 #include <simgear/structure/subsystem_mgr.hxx>
+#include <simgear/props/tiedpropertylist.hxx>
 #include <FDM/groundcache.hxx>
 
 using std::list;
 using std::vector;
 using std::string;
 
+class SGMaterial;
+
 /**
  * A little helper class to update the track if
  * the position has changed. In the constructor, 
@@ -127,7 +130,7 @@ private:
     bool inited;
 
     // Have we bound to the property system
-    bool bound; 
+    bool bound;
 
     // periodic update management variable.  This is a scheme to run
     // the fdm with a fixed delta-t.  We control how many iteration of
@@ -187,6 +190,8 @@ private:
     double altitude_agl;
     double track;
 
+    simgear::TiedPropertyList _tiedProperties;
+
     // the ground cache object itself.
     FGGroundCache ground_cache;
 
@@ -552,6 +557,7 @@ public:
 
     inline double get_V_ground_speed() const { return v_ground_speed; }
     inline double get_V_ground_speed_kt() const { return v_ground_speed * SG_FEET_TO_METER * 3600 * SG_METER_TO_NM; }
+    inline void   set_V_ground_speed_kt(double ground_speed) { v_ground_speed = ground_speed / ( SG_FEET_TO_METER * 3600 * SG_METER_TO_NM); }
 
     inline double get_V_equiv_kts() const { return v_equiv_kts; }