Browse Source

Plane: Return RESULT_FAILED for GET_CMD_HOME if home is unset

master
Michael du Breuil 9 years ago committed by Randy Mackay
parent
commit
2843e266b5
  1. 2
      ArduPlane/GCS_Mavlink.cpp

2
ArduPlane/GCS_Mavlink.cpp

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

Loading…
Cancel
Save