mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_DroneCAN: prevent saturation of CPU with DroneCAN thread
This commit is contained in:
parent
06e3b2051d
commit
4e008d942c
@ -506,6 +506,10 @@ void AP_DroneCAN::loop(void)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ensure that the DroneCAN thread cannot completely saturate
|
||||||
|
// the CPU, preventing low priority threads from running
|
||||||
|
hal.scheduler->delay_microseconds(100);
|
||||||
|
|
||||||
canard_iface.process(1);
|
canard_iface.process(1);
|
||||||
|
|
||||||
safety_state_send();
|
safety_state_send();
|
||||||
|
Loading…
Reference in New Issue
Block a user