mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 04:33:33 +08:00
vmount: adjust timeout 50 -> 20 ms (50 Hz)
This commit is contained in:
@@ -377,7 +377,7 @@ static int vmount_thread_main(int argc, char *argv[])
|
||||
bool already_active = (last_active == i);
|
||||
|
||||
ControlData *control_data_to_check = nullptr;
|
||||
unsigned int poll_timeout = already_active ? 50 : 0; // poll only on active input to reduce latency
|
||||
unsigned int poll_timeout = already_active ? 20 : 0; // poll only on active input to reduce latency
|
||||
int ret = thread_data.input_objs[i]->update(poll_timeout, &control_data_to_check, already_active);
|
||||
|
||||
if (ret) {
|
||||
|
||||
Reference in New Issue
Block a user