Rover: move handling of get_home_position up

This commit is contained in:
Peter Barker 2018-03-16 15:01:24 +11:00 committed by Randy Mackay
parent bed3f0c344
commit bb7bed0614
1 changed files with 0 additions and 13 deletions

View File

@ -891,19 +891,6 @@ void GCS_MAVLINK_Rover::handleMessage(mavlink_message_t* msg)
}
break;
case MAV_CMD_GET_HOME_POSITION:
if (AP::ahrs().home_is_set()) {
send_home(rover.ahrs.get_home());
Location ekf_origin;
if (rover.ahrs.get_origin(ekf_origin)) {
send_ekf_origin(ekf_origin);
}
result = MAV_RESULT_ACCEPTED;
} else {
result = MAV_RESULT_FAILED;
}
break;
case MAV_CMD_DO_SET_HOME:
{
// param1 : use current (1=use current location, 0=use specified location)