Browse Source

AP_IOMCU: fix radio failsafe handling

mission-4.1.18
Jonathan Challinger 7 years ago committed by Andrew Tridgell
parent
commit
65b20bfd83
  1. 2
      libraries/AP_IOMCU/AP_IOMCU.cpp

2
libraries/AP_IOMCU/AP_IOMCU.cpp

@ -311,7 +311,7 @@ void AP_IOMCU::read_rc_input() @@ -311,7 +311,7 @@ void AP_IOMCU::read_rc_input()
// read a min of 9 channels and max of IOMCU_MAX_CHANNELS
uint8_t n = MIN(MAX(9, rc_input.count), IOMCU_MAX_CHANNELS);
read_registers(PAGE_RAW_RCIN, 0, 6+n, (uint16_t *)&rc_input);
if (rc_input.flags_rc_ok) {
if (rc_input.flags_rc_ok && !rc_input.flags_failsafe) {
rc_input.last_input_us = AP_HAL::micros();
}
}

Loading…
Cancel
Save