mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 17:18:28 -04:00
AP_DroneCAN: prevent saturation of CPU with DroneCAN thread
This commit is contained in:
parent
acee3f7594
commit
c68a9cf26f
@ -506,6 +506,10 @@ void AP_DroneCAN::loop(void)
|
||||
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);
|
||||
|
||||
safety_state_send();
|
||||
|
Loading…
Reference in New Issue
Block a user