]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/MagicCarpet.cxx
Tweaks to go along with changes in SGSocket.
[flightgear.git] / src / FDM / MagicCarpet.cxx
index 7964c7a41a333d7bffaad2cbc42de99cc748e84a..31a428aa2e42c8a38b313e87cd6b44a0f0018fe9 100644 (file)
 // $Id$
 
 
+#include <simgear/math/fg_geodesy.hxx>
+#include <simgear/math/point3d.hxx>
+#include <simgear/math/polar3d.hxx>
+
 #include <Controls/controls.hxx>
 #include <Main/options.hxx>
-#include <Math/fg_geodesy.hxx>
-#include <Math/point3d.hxx>
-#include <Math/polar3d.hxx>
 
 #include "MagicCarpet.hxx"
 
@@ -51,7 +52,9 @@ int FGMagicCarpet::update( int multiloop ) {
     double dist = speed * time_step;
     double kts = speed * METER_TO_NM * 3600.0;
     set_V_equiv_kts( kts );
+    set_V_calibrated_kts( kts );
     set_V_ground_speed( kts );
+    set_Mach_number(0);
 
     // angle of turn
     double turn_rate = controls.get_aileron() * FG_PI_4; // radians/sec
@@ -59,6 +62,7 @@ int FGMagicCarpet::update( int multiloop ) {
 
     // update euler angles
     set_Euler_Angles( get_Phi(), get_Theta(), fmod(get_Psi() + turn, FG_2PI) );
+    set_Euler_Rates(0,0,0);
 
     // update (lon/lat) position
     double lat2, lon2, az2;