mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Plane: Added support for MAV_CMD_DO_LAND_START
This commit is contained in:
parent
ea91f4d47b
commit
fe43ae538f
@ -1109,6 +1109,19 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
||||
}
|
||||
break;
|
||||
|
||||
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
|
||||
if (mission.jump_to_landing_sequence()) {
|
||||
result = MAV_RESULT_ACCEPTED;
|
||||
}
|
||||
break;
|
||||
|
||||
case MAV_CMD_DO_FENCE_ENABLE:
|
||||
result = MAV_RESULT_ACCEPTED;
|
||||
|
||||
|
@ -233,6 +233,7 @@ static bool verify_command(const AP_Mission::Mission_Command& cmd) // Ret
|
||||
case MAV_CMD_DO_MOUNT_CONFIGURE:
|
||||
case MAV_CMD_DO_MOUNT_CONTROL:
|
||||
case MAV_CMD_DO_INVERTED_FLIGHT:
|
||||
case MAV_CMD_DO_LAND_START:
|
||||
return true;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user