mirror of https://github.com/ArduPilot/ardupilot
AP_DroneCAN: prevent saturation of CPU with DroneCAN thread
This commit is contained in:
parent
fbb91420bc
commit
0a6af9de1c
|
@ -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