Browse Source

Rover: Return RESULT_FAILED for GET_CMD_HOME if home is unset

mission-4.1.18
Michael du Breuil 9 years ago committed by Randy Mackay
parent
commit
f1f8233220
  1. 2
      APMrover2/GCS_Mavlink.cpp

2
APMrover2/GCS_Mavlink.cpp

@ -1105,6 +1105,8 @@ void GCS_MAVLINK_Rover::handleMessage(mavlink_message_t* msg) @@ -1105,6 +1105,8 @@ void GCS_MAVLINK_Rover::handleMessage(mavlink_message_t* msg)
if (rover.home_is_set != HOME_UNSET) {
send_home(rover.ahrs.get_home());
result = MAV_RESULT_ACCEPTED;
} else {
result = MAV_RESULT_FAILED;
}
break;

Loading…
Cancel
Save