MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / _rcin_thread

Method _rcin_thread

libraries/AP_HAL_ChibiOS/Scheduler.cpp:522–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520#endif // HAL_MONITOR_THREAD_ENABLED
521
522void Scheduler::_rcin_thread(void *arg)
523{
524 Scheduler *sched = (Scheduler *)arg;
525 chRegSetThreadName("rcin");
526 while (!sched->_hal_initialized) {
527 sched->delay_microseconds(20000);
528 }
529 while (true) {
530 sched->delay_microseconds(1000);
531 ((RCInput *)hal.rcin)->_timer_tick();
532 }
533}
534
535void Scheduler::_run_io(void)
536{

Callers

nothing calls this directly

Calls 2

delay_microsecondsMethod · 0.45
_timer_tickMethod · 0.45

Tested by

no test coverage detected