Copter: accept velocity requests in Auto-Guided mode

This commit is contained in:
Randy Mackay 2014-10-14 11:26:08 +09:00
parent c636ea9101
commit 6a225865ce

View File

@ -1294,8 +1294,8 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
break;
}
// exit if vehicle is not in guided mode
if (control_mode != GUIDED) {
// exit if vehicle is not in Guided mode or Auto-Guided mode
if ((control_mode != GUIDED) && !(control_mode == AUTO && auto_mode == Auto_NavGuided)) {
break;
}
@ -1316,8 +1316,8 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
break;
}
// exit if vehicle is not in guided mode
if (control_mode != GUIDED) {
// exit if vehicle is not in Guided mode or Auto-Guided mode
if ((control_mode != GUIDED) && !(control_mode == AUTO && auto_mode == Auto_NavGuided)) {
break;
}