mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 07:09:48 +08:00
camera_trigger: lower the polling rate from 200Hz to 20Hz to reduce the CPU load
This commit is contained in:
committed by
Daniel Agar
parent
2b54e19adf
commit
3d44077f2c
@@ -512,7 +512,7 @@ void
|
||||
CameraTrigger::Run()
|
||||
{
|
||||
// default loop polling interval
|
||||
int poll_interval_usec = 5000;
|
||||
int poll_interval_usec = 50000;
|
||||
|
||||
vehicle_command_s cmd{};
|
||||
unsigned cmd_result = vehicle_command_s::VEHICLE_CMD_RESULT_TEMPORARILY_REJECTED;
|
||||
|
||||
Reference in New Issue
Block a user