APM: support DO_SET_SERVO command

This commit is contained in:
Andrew Tridgell 2012-09-03 20:56:36 +10:00
parent 12c5e00db9
commit 9b2a2b2c2e
1 changed files with 4 additions and 0 deletions

View File

@ -1105,6 +1105,10 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
} }
break; break;
case MAV_CMD_DO_SET_SERVO:
APM_RC.OutputCh(packet.param1 - 1, packet.param2);
result = MAV_RESULT_ACCEPTED;
break;
default: default:
result = MAV_RESULT_UNSUPPORTED; result = MAV_RESULT_UNSUPPORTED;