Copter: Add MAV_CMD_DO_SET_CAM_TRIGG_DIST support

This commit is contained in:
Paulo Neves 2017-05-22 18:51:40 +02:00 committed by Randy Mackay
parent 74d67f8d05
commit 9c6a7c170f

View File

@ -1224,6 +1224,12 @@ void GCS_MAVLINK_Copter::handleMessage(mavlink_message_t* msg)
}
result = MAV_RESULT_ACCEPTED;
break;
case MAV_CMD_DO_SET_CAM_TRIGG_DIST:
copter.camera.set_trigger_distance(packet.param1);
result = MAV_RESULT_ACCEPTED;
break;
#endif // CAMERA == ENABLED
case MAV_CMD_DO_MOUNT_CONTROL:
#if MOUNT == ENABLED