]> git.mxchange.org Git - flightgear.git/commitdiff
Syd Adams:
authorcurt <curt>
Sun, 10 Jun 2007 15:58:50 +0000 (15:58 +0000)
committercurt <curt>
Sun, 10 Jun 2007 15:58:50 +0000 (15:58 +0000)
Export ground speed to property system under /velocities.

src/FDM/flight.cxx
src/FDM/flight.hxx

index 1474b9746c062564ec891bf1df950cb4a2146574..248685ba0ba78a93ebe26c83d66b3b88832fc4fc 100644 (file)
@@ -363,6 +363,10 @@ FGInterface::bind ()
   fgTie("/orientation/yaw-rate-degps", this,
        &FGInterface::get_Psi_dot_degps);
 
+                                // Ground speed knots
+  fgTie("/velocities/groundspeed-kt", this,
+        &FGInterface::get_V_ground_speed_kt);
+
                                // Calibrated airspeed
   fgTie("/velocities/airspeed-kt", this,
        &FGInterface::get_V_calibrated_kts,
@@ -486,6 +490,7 @@ FGInterface::unbind ()
   fgUntie("/orientation/side-slip-deg");
   fgUntie("/orientation/alpha-deg");
   fgUntie("/velocities/airspeed-kt");
+   fgUntie("/velocities/groundspeed-kt");
   fgUntie("/velocities/mach");
   fgUntie("/velocities/speed-north-fps");
   fgUntie("/velocities/speed-east-fps");
index f5533625c090772cc5012ff3b55c1247acf617b9..3fdfbd1b270965a752b4defa89e4ec456d3b9ca5 100644 (file)
@@ -792,6 +792,7 @@ public:
     // inline void set_V_inertial(double v) { v_inertial = v; }
 
     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 double get_V_equiv() const { return v_equiv; }
     // inline void set_V_equiv( double v ) { v_equiv = v; }