Browse Source

Plane: switch to AUTO on a DO_LAND_START MAVLink command

mission-4.1.18
Andrew Tridgell 10 years ago
parent
commit
9f32bf93d1
  1. 7
      ArduPlane/GCS_Mavlink.pde

7
ArduPlane/GCS_Mavlink.pde

@ -1111,13 +1111,10 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) @@ -1111,13 +1111,10 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
case MAV_CMD_DO_LAND_START:
result = MAV_RESULT_FAILED;
//no reason to AUTO land in MANUAL mode.
if (control_mode == MANUAL) {
break;
}
//attempt to switch to next DO_LAND_START command in the mission
// attempt to switch to next DO_LAND_START command in the mission
if (mission.jump_to_landing_sequence()) {
set_mode(AUTO);
result = MAV_RESULT_ACCEPTED;
}
break;

Loading…
Cancel
Save