mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 01:04:19 +08:00
camera_trigger : digicam control command should only shoot once
This commit is contained in:
committed by
Lorenz Meier
parent
e4896a5972
commit
2c0d1c013a
@@ -461,9 +461,8 @@ CameraTrigger::cycle_trampoline(void *arg)
|
||||
|
||||
} else if (cmd.command == vehicle_command_s::VEHICLE_CMD_DO_DIGICAM_CONTROL) {
|
||||
if (cmd.param5 > 0) {
|
||||
// One-shot trigger, default 1 ms interval
|
||||
trig->_interval = 1000;
|
||||
trig->control(true);
|
||||
// One-shot trigger
|
||||
trig->shoot_once();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user