AP_Soaring: Fix bug when no soaring activation RC channel set.
This commit is contained in:
parent
fbd0df81a7
commit
d54c7f1b7a
@ -350,7 +350,7 @@ SoaringController::ActiveStatus SoaringController::active_state() const
|
||||
}
|
||||
if (soar_active_ch <= 0) {
|
||||
// no activation channel
|
||||
return SOARING_STATUS_MANUAL_MODE_CHANGE;
|
||||
return SOARING_STATUS_AUTO_MODE_CHANGE;
|
||||
}
|
||||
|
||||
uint16_t radio_in = RC_Channels::get_radio_in(soar_active_ch-1);
|
||||
|
Loading…
Reference in New Issue
Block a user