Browse Source

HAL_ChibiOS: switch between IOMCU and RCProt rapidly

keep the RCProtocol decoder going when IOMCU being used, allowing for fast failover
between IOMCU RC input and uart RC input
apm_2208
Andrew Tridgell 3 years ago
parent
commit
b46b0d61a6
  1. 2
      libraries/AP_HAL_ChibiOS/RCInput.cpp

2
libraries/AP_HAL_ChibiOS/RCInput.cpp

@ -181,7 +181,7 @@ void RCInput::_timer_tick(void) @@ -181,7 +181,7 @@ void RCInput::_timer_tick(void)
_rcin_last_iomcu_ms = 0;
}
if (!have_iocmu_rc && rcprot.new_input()) {
if (rcprot.new_input() && !have_iocmu_rc) {
WITH_SEMAPHORE(rcin_mutex);
_rcin_timestamp_last_signal = AP_HAL::micros();
_num_channels = rcprot.num_channels();

Loading…
Cancel
Save