mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
Plane: move handling of get_home_position up
This commit is contained in:
parent
bb7bed0614
commit
5572d83ce9
@ -1193,19 +1193,6 @@ void GCS_MAVLINK_Plane::handleMessage(mavlink_message_t* msg)
|
||||
}
|
||||
break;
|
||||
|
||||
case MAV_CMD_GET_HOME_POSITION:
|
||||
if (AP::ahrs().home_is_set()) {
|
||||
send_home(plane.ahrs.get_home());
|
||||
Location ekf_origin;
|
||||
if (plane.ahrs.get_origin(ekf_origin)) {
|
||||
send_ekf_origin(ekf_origin);
|
||||
}
|
||||
result = MAV_RESULT_ACCEPTED;
|
||||
} else {
|
||||
result = MAV_RESULT_FAILED;
|
||||
}
|
||||
break;
|
||||
|
||||
case MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN:
|
||||
result = handle_preflight_reboot(packet, plane.quadplane.enable != 0);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user