diff --git a/libraries/AP_HAL_AVR_SITL/SITL_State.cpp b/libraries/AP_HAL_AVR_SITL/SITL_State.cpp index bb927f1941..b1934e6626 100644 --- a/libraries/AP_HAL_AVR_SITL/SITL_State.cpp +++ b/libraries/AP_HAL_AVR_SITL/SITL_State.cpp @@ -261,7 +261,7 @@ void SITL_State::_timer_handler(int signum) #endif // simulate RC input at 50Hz - if (hal.scheduler->millis() - last_pwm_input >= 20) { + if (hal.scheduler->millis() - last_pwm_input >= 20 && _sitl->rc_fail == 0) { last_pwm_input = hal.scheduler->millis(); pwm_valid = true; }