]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/SP/ACMS.cxx
Fix stall widths for the "auxilliary" (reverse flow) stalls so they
[flightgear.git] / src / FDM / SP / ACMS.cxx
index 346329f1d81df1be59a4438b563a3a175c804acf..5b75f85204c4ac4328c445563d0a7fc771d8052d 100644 (file)
@@ -78,9 +78,9 @@ void FGACMS::update( double dt ) {
     sgSetVec3(accel_ned, acc_lon, acc_lat, acc_down);
     double accel = sgLengthVec3 (accel_ned) * SG_FEET_TO_METER;
 
-    double velocity = (_speed->getDoubleValue() * SG_FEET_TO_METER) * accel;
+    double velocity = (_speed->getDoubleValue() * SG_KT_TO_MPS) + accel * dt;
     double dist = cos (pitch) * velocity * dt;
-    double kts = velocity * SG_MPS_TO_KMH * SG_KMH_TO_MPS * SG_MPS_TO_KT;
+    double kts = velocity * SG_MPS_TO_KT;
     _set_V_equiv_kts( kts );
     _set_V_calibrated_kts( kts );
     _set_V_ground_speed( kts );
@@ -103,6 +103,7 @@ void FGACMS::update( double dt ) {
     _set_Euler_Rates(0,0,0);
 
     _set_Geocentric_Position( lat_geoc, get_Longitude(), sl_radius);
+    _update_ground_elev_at_pos();
     _set_Sea_level_radius( sl_radius * SG_METER_TO_FEET);
 
 }