mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
AUTO_LOITER respect disabled RC link loss param (#5499)
This commit is contained in:
@@ -855,9 +855,10 @@ bool set_nav_state(struct vehicle_status_s *status, struct commander_state_s *in
|
||||
status->nav_state = vehicle_status_s::NAVIGATION_STATE_TERMINATION;
|
||||
}
|
||||
|
||||
/* go into failsafe if RC is lost and datalink loss is not set up */
|
||||
/* go into failsafe if RC is lost and datalink loss is not set up and rc loss is not disabled */
|
||||
|
||||
} else if (status->rc_signal_lost && rc_loss_enabled && !data_link_loss_enabled) {
|
||||
|
||||
} else if (status->rc_signal_lost && !data_link_loss_enabled) {
|
||||
status->failsafe = true;
|
||||
|
||||
if (status_flags->condition_global_position_valid && status_flags->condition_home_position_valid) {
|
||||
|
||||
Reference in New Issue
Block a user