Copter: canonicalize on STANDBY rather than STANDY_BY
This commit is contained in:
parent
3bec1c7d4f
commit
f7ba79e493
@ -77,7 +77,7 @@ void RC_Channel_Copter::init_aux_function(const aux_func_t ch_option, const aux_
|
||||
case AUX_FUNC::PRECISION_LOITER:
|
||||
case AUX_FUNC::INVERTED:
|
||||
case AUX_FUNC::WINCH_ENABLE:
|
||||
case AUX_FUNC::STAND_BY:
|
||||
case AUX_FUNC::STANDBY:
|
||||
case AUX_FUNC::SURFACE_TRACKING:
|
||||
do_aux_function(ch_option, ch_flag);
|
||||
break;
|
||||
@ -543,16 +543,16 @@ void RC_Channel_Copter::do_aux_function(const aux_func_t ch_option, const aux_sw
|
||||
#endif
|
||||
break;
|
||||
|
||||
case AUX_FUNC::STAND_BY: {
|
||||
case AUX_FUNC::STANDBY: {
|
||||
switch (ch_flag) {
|
||||
case HIGH:
|
||||
copter.standby_active = true;
|
||||
copter.Log_Write_Event(DATA_STAND_BY_ENABLE);
|
||||
copter.Log_Write_Event(DATA_STANDBY_ENABLE);
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "Stand By Enabled");
|
||||
break;
|
||||
default:
|
||||
copter.standby_active = false;
|
||||
copter.Log_Write_Event(DATA_STAND_BY_DISABLE);
|
||||
copter.Log_Write_Event(DATA_STANDBY_DISABLE);
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "Stand By Disabled");
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user