From a45dd30c1d94b216ee89c3fd7ab8f3fc1d9bedea Mon Sep 17 00:00:00 2001 From: Paulo Neves Date: Mon, 22 May 2017 18:51:50 +0200 Subject: [PATCH] Plane: Add MAV_CMD_DO_SET_CAM_TRIGG_DIST support. --- ArduPlane/GCS_Mavlink.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index caec2cfa76..a20c51352e 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -1168,6 +1168,11 @@ void GCS_MAVLINK_Plane::handleMessage(mavlink_message_t* msg) } result = MAV_RESULT_ACCEPTED; break; + + case MAV_CMD_DO_SET_CAM_TRIGG_DIST: + plane.camera.set_trigger_distance(packet.param1); + result = MAV_RESULT_ACCEPTED; + break; #endif // CAMERA == ENABLED case MAV_CMD_DO_MOUNT_CONTROL: