mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-09 20:04:05 +08:00
Merge branch 'failsafe_sbus_cleanup' into rc_timeout
This commit is contained in:
@@ -1121,7 +1121,7 @@ int commander_thread_main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
/* start RC input check */
|
||||
if (!status.rc_input_blocked && !sp_man.signal_lost && hrt_absolute_time() < sp_man.timestamp + RC_TIMEOUT) {
|
||||
if (!status.rc_input_blocked && sp_man.timestamp != 0 && hrt_absolute_time() < sp_man.timestamp + RC_TIMEOUT) {
|
||||
/* handle the case where RC signal was regained */
|
||||
if (!status.rc_signal_found_once) {
|
||||
status.rc_signal_found_once = true;
|
||||
|
||||
Reference in New Issue
Block a user