mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
commander offboard loss rc act unreachable
- coverity fix 145492
This commit is contained in:
committed by
Lorenz Meier
parent
beaa758605
commit
625dc67f84
@@ -808,7 +808,7 @@ bool set_nav_state(struct vehicle_status_s *status,
|
||||
if (status_flags->offboard_control_signal_lost && !status->rc_signal_lost) {
|
||||
enable_failsafe(status, old_failsafe, mavlink_log_pub, reason_no_offboard);
|
||||
|
||||
if (status_flags->offboard_control_loss_timeout && offb_loss_rc_act < 5 && offb_loss_rc_act >= 0) {
|
||||
if (status_flags->offboard_control_loss_timeout && offb_loss_rc_act < 6 && offb_loss_rc_act >= 0) {
|
||||
if (offb_loss_rc_act == 3 && status_flags->condition_global_position_valid
|
||||
&& status_flags->condition_home_position_valid) {
|
||||
status->nav_state = vehicle_status_s::NAVIGATION_STATE_AUTO_RTL;
|
||||
|
||||
Reference in New Issue
Block a user