Browse Source

Plane: use TECS get_target_airspeed()

mission-4.1.18
Andrew Tridgell 11 years ago
parent
commit
861523a00a
  1. 4
      ArduPlane/navigation.pde

4
ArduPlane/navigation.pde

@ -109,7 +109,9 @@ static void calc_airspeed_errors() @@ -109,7 +109,9 @@ static void calc_airspeed_errors()
if (target_airspeed_cm > (aparm.airspeed_max * 100))
target_airspeed_cm = (aparm.airspeed_max * 100);
airspeed_error_cm = target_airspeed_cm - aspeed_cm;
// use the TECS view of the target airspeed for reporting, to take
// account of the landing speed
airspeed_error_cm = SpdHgt_Controller->get_target_airspeed()*100 - aspeed_cm;
}
static void calc_gndspeed_undershoot()

Loading…
Cancel
Save