From 87dd077f577511fc7fc9e5e6dde7cbdced43f39e Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Sat, 28 Dec 2019 14:42:51 -0800 Subject: [PATCH] Fix MAV_CMD_IMAGE_START_CAPTURE unit test usage for take photo --- src/MissionManager/CameraSectionTest.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MissionManager/CameraSectionTest.cc b/src/MissionManager/CameraSectionTest.cc index 476f1a137..f7f80da2b 100644 --- a/src/MissionManager/CameraSectionTest.cc +++ b/src/MissionManager/CameraSectionTest.cc @@ -113,7 +113,8 @@ void CameraSectionTest::init(void) 0, // Reserved (Set to 0) 0, // Interval (none) 1, // Take 1 photo - NAN, NAN, NAN, NAN, // param 4-7 reserved + 0, // Sequence id not used + NAN, NAN, NAN, // param 5-7 reserved true, // autoContinue false), // isCurrentItem this); @@ -975,7 +976,7 @@ void CameraSectionTest::_testScanForTakePhotoSection(void) Mission Param #1 Reserved (Set to 0) Mission Param #2 Duration between two consecutive pictures (in seconds) Mission Param #3 Number of images to capture total - 0 for unlimited capture - Mission Param #4 Reserved + Mission Param #4 0 Unused sequence id */ SimpleMissionItem* newValidTakePhotoItem = new SimpleMissionItem(_offlineVehicle, false /* flyView */, this); -- 2.22.0