HAL_ChibiOS: run can loop much more often

this allows for much higher ESC and servo rates, as it gives more
changes for frames to get out
This commit is contained in:
Andrew Tridgell committed 2018-05-25 13:53:17 +10:00
1 parent 0dc77421e8
commit afb36ec168
3 files changed
+3 -6

No files matched your search

+1 -1
View File
@@ -313,7 +313,7 @@ void Scheduler::_uavcan_thread(void *arg)
sched->delay_microseconds(20000);
}
while (true) {
sched->delay_microseconds(1000);
sched->delay_microseconds(100);
for (int i = 0; i < MAX_NUMBER_OF_CAN_INTERFACES; i++) {
if(hal.can_mgr[i] != nullptr) {
CANManager::from(hal.can_mgr[i])->_timer_tick();