Tracker: remove old DO_SET_MODE support

We no longer support setting modes except via custom modes
This commit is contained in:
Peter Barker 2017-09-18 14:34:54 +10:00 committed by Francisco Ferreira
parent add5eb6907
commit 962f237db4
1 changed files with 0 additions and 19 deletions

View File

@ -529,25 +529,6 @@ void GCS_MAVLINK_Tracker::handleMessage(mavlink_message_t* msg)
result = MAV_RESULT_ACCEPTED;
break;
case MAV_CMD_DO_SET_MODE:
switch ((uint16_t)packet.param1) {
case MAV_MODE_MANUAL_ARMED:
case MAV_MODE_MANUAL_DISARMED:
tracker.set_mode(MANUAL);
result = MAV_RESULT_ACCEPTED;
break;
case MAV_MODE_AUTO_ARMED:
case MAV_MODE_AUTO_DISARMED:
tracker.set_mode(AUTO);
result = MAV_RESULT_ACCEPTED;
break;
default:
result = MAV_RESULT_UNSUPPORTED;
}
break;
case MAV_CMD_DO_SET_SERVO:
if (tracker.servo_test_set_servo(packet.param1, packet.param2)) {
result = MAV_RESULT_ACCEPTED;