Skip to content

Commit

Permalink
[bugfix] Fix: RC really lost procedure only active when launch has be…
Browse files Browse the repository at this point in the history
…en pressed. When not launched, the RC_LOST_MODE is not set and throttle is kept from the last manual input. Solves #2286
  • Loading branch information
dewagter committed Jun 28, 2018
1 parent 1337925 commit e21d951
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sw/airborne/firmwares/fixedwing/autopilot_static.c
Expand Up @@ -122,9 +122,9 @@ void autopilot_static_on_rc_frame(void)
if (too_far_from_home || datalink_lost() || higher_than_max_altitude()) {
mode_changed = autopilot_set_mode(AP_MODE_HOME);
}
if (really_lost) {
mode_changed = autopilot_set_mode(RC_LOST_MODE);
}
}
if (really_lost) {
mode_changed = autopilot_set_mode(RC_LOST_MODE);
}
if (bit_is_set(imcu_get_status(), AVERAGED_CHANNELS_SENT)) {
bool pprz_mode_changed = pprz_mode_update();
Expand Down

1 comment on commit e21d951

@OpenUAS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Holy cr*p, THX!!

Please sign in to comment.