From fedb83612245e3c0bce582fc2385227ac4cacf69 Mon Sep 17 00:00:00 2001 From: Gus Grubba Date: Mon, 13 Feb 2017 23:27:49 -0500 Subject: [PATCH] Maybe the third time I get this right? --- src/uas/UAS.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 633ba60df..ebe066245 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -1226,6 +1226,7 @@ void UAS::takePhoto() if (_vehicle) { _vehicle->sendMavCommand(_vehicle->defaultComponentId(), // target component MAV_CMD_IMAGE_START_CAPTURE, // command id + true, // showError 0, // Duration between two consecutive pictures (in seconds) 1, // Number of images to capture total - 0 for unlimited capture 0, // Resolution in megapixels (0.3 for 640x480, 1.3 for 1280x720, etc), set to 0 if param 4/5 are used @@ -1242,6 +1243,7 @@ void UAS::toggleVideo() if (_vehicle) { _vehicle->sendMavCommand(_vehicle->defaultComponentId(), // target component MAV_CMD_VIDEO_START_CAPTURE, // command id + true, // showError 0, // Camera ID (0 for all cameras), 1 for first, 2 for second, etc. 60, // Frames per second 0, // Resolution in megapixels (0.3 for 640x480, 1.3 for 1280x720, etc), set to 0 if param 4/5 are used -- 2.22.0