From e4ca10363bcaddcfdc37304c20b57f621ec818c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 17 Feb 2017 14:20:35 +0100 Subject: [PATCH] mavlink MAV_CMD_IMAGE_START_CAPTURE message: send request for highest resolution --- 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 901602953c..235dd35819 100644 --- a/src/modules/mavlink/mavlink_messages.cpp +++ b/src/modules/mavlink/mavlink_messages.cpp @@ -1427,9 +1427,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; - msg_cmd.param2 = 1; - msg_cmd.param3 = 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.param4 = NAN; msg_cmd.param5 = NAN; msg_cmd.param6 = NAN;