Skip to content

Commit

Permalink
commander offboard loss rc act unreachable
Browse files Browse the repository at this point in the history
 - coverity fix 145492
  • Loading branch information
dagar authored and LorenzMeier committed Jun 3, 2017
1 parent beaa758 commit 625dc67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/commander/state_machine_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 625dc67

Please sign in to comment.