Browse Source

Plane: don't use ground steering until flare in landing

we need to be able to guide the plane fully in the landing approach
master
Andrew Tridgell 11 years ago
parent
commit
b94bc0c243
  1. 4
      ArduPlane/Attitude.pde

4
ArduPlane/Attitude.pde

@ -214,6 +214,10 @@ static void stabilize_yaw(float speed_scaler) @@ -214,6 +214,10 @@ static void stabilize_yaw(float speed_scaler)
// are below the GROUND_STEER_ALT
steering_control.ground_steering = (channel_roll->control_in == 0 &&
fabsf(relative_altitude()) < g.ground_steer_alt);
if (control_mode == AUTO && flight_stage == AP_SpdHgtControl::FLIGHT_LAND_APPROACH) {
// don't use ground steering on landing approach
steering_control.ground_steering = false;
}
}

Loading…
Cancel
Save