Plane: non-functional: mostly whitespace and removed extra set result statement

This commit is contained in:
Tom Pittenger 2016-06-07 08:11:05 -07:00
parent 2c0f0a04d8
commit 01e636065d

View File

@ -1228,14 +1228,14 @@ void GCS_MAVLINK_Plane::handleMessage(mavlink_message_t* msg)
case MAV_CMD_DO_CHANGE_SPEED:
// if we're in failsafe modes (e.g., RTL, LOITER) or in pilot
// controlled modes (e.g., MANUAL, TRAINING)
//this comand should be ignored since it comes in from GCS
// this command should be ignored since it comes in from GCS
// or a companion computer:
if (plane.control_mode != GUIDED && plane.control_mode != AUTO) {
result = MAV_RESULT_FAILED;
if (plane.control_mode != GUIDED && plane.control_mode != AUTO) {
// failed
break;
}
result = MAV_RESULT_FAILED;
AP_Mission::Mission_Command cmd;
if (AP_Mission::mavlink_cmd_long_to_mission_cmd(packet, cmd)
== MAV_MISSION_ACCEPTED) {