From 723a6bf6acd89b63c18ce5b1c6a8e6f5eef751a0 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 29 May 2017 08:54:52 +0200 Subject: [PATCH] mavlink: new MAV_CMD_IMAGE_START_CAPTURE spec The spec of the mavlink command MAV_CMD_IMAGE_START_CAPTURE has changed. --- src/modules/mavlink/mavlink_messages.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/mavlink/mavlink_messages.cpp b/src/modules/mavlink/mavlink_messages.cpp index 2deccdafc7..04e9c4b3ec 100644 --- a/src/modules/mavlink/mavlink_messages.cpp +++ b/src/modules/mavlink/mavlink_messages.cpp @@ -1452,9 +1452,9 @@ protected: msg_cmd.target_component = MAV_COMP_ID_CAMERA; msg_cmd.command = MAV_CMD_IMAGE_START_CAPTURE; msg_cmd.confirmation = 0; - msg_cmd.param1 = 0; // duration between 2 consecutive images (seconds) - msg_cmd.param2 = 1; // take 1 picture - msg_cmd.param3 = -1; // resolution (use the highest possible) + msg_cmd.param1 = 0; // all cameras + msg_cmd.param2 = 0; // duration 0 because only taking one picture + msg_cmd.param3 = 1; // only take one msg_cmd.param4 = NAN; msg_cmd.param5 = NAN; msg_cmd.param6 = NAN;