From 74d67f8d056b40b2396dc20b80ba15f425877572 Mon Sep 17 00:00:00 2001 From: Paulo Neves Date: Mon, 22 May 2017 18:50:52 +0200 Subject: [PATCH] Rover: Add MAV_CMD_DO_SET_CAM_TRIGG_DIST support. --- APMrover2/GCS_Mavlink.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/APMrover2/GCS_Mavlink.cpp b/APMrover2/GCS_Mavlink.cpp index 5391fe13f4..2ca8f3d5ef 100644 --- a/APMrover2/GCS_Mavlink.cpp +++ b/APMrover2/GCS_Mavlink.cpp @@ -859,7 +859,12 @@ void GCS_MAVLINK_Rover::handleMessage(mavlink_message_t* msg) } result = MAV_RESULT_ACCEPTED; break; -#endif // CAMERA == ENABLED + + case MAV_CMD_DO_SET_CAM_TRIGG_DIST: + rover.camera.set_trigger_distance(packet.param1); + result = MAV_RESULT_ACCEPTED; + break; +#endif // CAMERA == ENABLED case MAV_CMD_DO_MOUNT_CONTROL: #if MOUNT == ENABLED