mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Camera trigger: Support triggering one image immediately.
This allows to re-enable the distance trigger and immediately take a picture. This is helpful to ensure survey areas are covered on entry and exit.
This commit is contained in:
@@ -602,6 +602,12 @@ CameraTrigger::cycle_trampoline(void *arg)
|
||||
}
|
||||
}
|
||||
|
||||
// Trigger once immediately if param is set
|
||||
if (cmd.param3 > 0.0f) {
|
||||
// Schedule shot
|
||||
trig->_one_shot = true;
|
||||
}
|
||||
|
||||
cmd_result = vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED;
|
||||
|
||||
} else if (cmd.command == vehicle_command_s::VEHICLE_CMD_DO_SET_CAM_TRIGG_INTERVAL) {
|
||||
|
||||
Reference in New Issue
Block a user