ArduPlane: remove duplicate fail-safe time check

This commit is contained in:
Peter Hall 2020-07-25 01:22:32 +01:00 committed by Andrew Tridgell
parent 62354527d4
commit cd46c5006a
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ int16_t Plane::rudder_input(void)
void Plane::control_failsafe() void Plane::control_failsafe()
{ {
if (millis() - failsafe.last_valid_rc_ms > 1000 || rc_failsafe_active()) { if (rc_failsafe_active()) {
// we do not have valid RC input. Set all primary channel // we do not have valid RC input. Set all primary channel
// control inputs to the trim value and throttle to min // control inputs to the trim value and throttle to min
channel_roll->set_radio_in(channel_roll->get_radio_trim()); channel_roll->set_radio_in(channel_roll->get_radio_trim());