mirror of https://github.com/ArduPilot/ardupilot
Blimp: use new ModeReason::AUX_FUNCTION
This commit is contained in:
parent
3823493cd2
commit
042fd53750
|
@ -79,7 +79,7 @@ void RC_Channel_Blimp::do_aux_function_change_mode(const Mode::Number mode,
|
||||||
switch (ch_flag) {
|
switch (ch_flag) {
|
||||||
case AuxSwitchPos::HIGH: {
|
case AuxSwitchPos::HIGH: {
|
||||||
// engage mode (if not possible we remain in current flight mode)
|
// engage mode (if not possible we remain in current flight mode)
|
||||||
const bool success = blimp.set_mode(mode, ModeReason::RC_COMMAND);
|
const bool success = blimp.set_mode(mode, ModeReason::AUX_FUNCTION);
|
||||||
if (blimp.ap.initialised) {
|
if (blimp.ap.initialised) {
|
||||||
if (success) {
|
if (success) {
|
||||||
AP_Notify::events.user_mode_change = 1;
|
AP_Notify::events.user_mode_change = 1;
|
||||||
|
|
Loading…
Reference in New Issue