mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
RC_Channel: correct compilation when AP_MISSION_ENABLED is false
This commit is contained in:
parent
63c95b32b4
commit
8da89492a7
@ -1066,6 +1066,7 @@ void RC_Channel::do_aux_function_fence(const AuxSwitchPos ch_flag)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if AP_MISSION_ENABLED
|
||||
void RC_Channel::do_aux_function_clear_wp(const AuxSwitchPos ch_flag)
|
||||
{
|
||||
if (ch_flag == AuxSwitchPos::HIGH) {
|
||||
@ -1076,6 +1077,7 @@ void RC_Channel::do_aux_function_clear_wp(const AuxSwitchPos ch_flag)
|
||||
mission->clear();
|
||||
}
|
||||
}
|
||||
#endif // AP_MISSION_ENABLED
|
||||
|
||||
#if AP_SERVORELAYEVENTS_ENABLED && AP_RELAY_ENABLED
|
||||
void RC_Channel::do_aux_function_relay(const uint8_t relay, bool val)
|
||||
@ -1178,6 +1180,7 @@ void RC_Channel::do_aux_function_rc_override_enable(const AuxSwitchPos ch_flag)
|
||||
}
|
||||
}
|
||||
|
||||
#if AP_MISSION_ENABLED
|
||||
void RC_Channel::do_aux_function_mission_reset(const AuxSwitchPos ch_flag)
|
||||
{
|
||||
if (ch_flag != AuxSwitchPos::HIGH) {
|
||||
@ -1189,6 +1192,7 @@ void RC_Channel::do_aux_function_mission_reset(const AuxSwitchPos ch_flag)
|
||||
}
|
||||
mission->reset();
|
||||
}
|
||||
#endif
|
||||
|
||||
void RC_Channel::do_aux_function_fft_notch_tune(const AuxSwitchPos ch_flag)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user