mirror of https://github.com/ArduPilot/ardupilot
RC_Channel: move AC_Avoidance defines into libraries
This commit is contained in:
parent
277a7c1bec
commit
4781938694
|
@ -891,7 +891,7 @@ void RC_Channel::do_aux_function_avoid_adsb(const AuxSwitchPos ch_flag)
|
|||
|
||||
void RC_Channel::do_aux_function_avoid_proximity(const AuxSwitchPos ch_flag)
|
||||
{
|
||||
#if !APM_BUILD_TYPE(APM_BUILD_ArduPlane)
|
||||
#if AP_AVOIDANCE_ENABLED && !APM_BUILD_TYPE(APM_BUILD_ArduPlane)
|
||||
AC_Avoid *avoid = AP::ac_avoid();
|
||||
if (avoid == nullptr) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue