Browse Source

HAL_ChibiOS: run RCIN thread at 1kHz

this gives fast enough response for SBUS parsing on a UART
master
Andrew Tridgell 6 years ago
parent
commit
06b272705e
  1. 2
      libraries/AP_HAL_ChibiOS/Scheduler.cpp

2
libraries/AP_HAL_ChibiOS/Scheduler.cpp

@ -380,7 +380,7 @@ void Scheduler::_rcin_thread(void *arg) @@ -380,7 +380,7 @@ void Scheduler::_rcin_thread(void *arg)
sched->delay_microseconds(20000);
}
while (true) {
sched->delay_microseconds(2500);
sched->delay_microseconds(1000);
((RCInput *)hal.rcin)->_timer_tick();
}
}

Loading…
Cancel
Save