From 390ed3765f2ad3cf7e8e849198f2b32e9864431f Mon Sep 17 00:00:00 2001 From: Igor Campos Date: Sat, 24 Oct 2020 11:00:15 -0400 Subject: [PATCH] disable pseudo-oblique mode if param4 is 0. --- src/drivers/camera_trigger/camera_trigger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/drivers/camera_trigger/camera_trigger.cpp b/src/drivers/camera_trigger/camera_trigger.cpp index 7e9e4ec6a3..efbbfe7b91 100644 --- a/src/drivers/camera_trigger/camera_trigger.cpp +++ b/src/drivers/camera_trigger/camera_trigger.cpp @@ -666,6 +666,9 @@ CameraTrigger::Run() _pseudo_oblique_pose_counter = 0; _move_distance = _distance / 2; _updated_roll_angle = false; + + } else { + _pseudo_oblique_num_poses = 0; } cmd_result = vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED;