Browse Source

Copter: 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
bec4bfa2ba
  1. 2
      ArduCopter/GCS_Mavlink.cpp

2
ArduCopter/GCS_Mavlink.cpp

@ -1425,6 +1425,8 @@ void GCS_MAVLINK_Copter::handleMessage(mavlink_message_t* msg)
if (copter.ap.home_state != HOME_UNSET) { if (copter.ap.home_state != HOME_UNSET) {
send_home(copter.ahrs.get_home()); send_home(copter.ahrs.get_home());
result = MAV_RESULT_ACCEPTED; result = MAV_RESULT_ACCEPTED;
} else {
result = MAV_RESULT_FAILED;
} }
break; break;

Loading…
Cancel
Save