ArduSub: correct compilation with rally disabled

This commit is contained in:
Peter Barker 2022-09-21 23:13:20 +10:00 committed by Peter Barker
parent 2d0f31c2ad
commit 7546530050
3 changed files with 2 additions and 10 deletions

View File

@ -549,7 +549,7 @@ const AP_Param::Info Sub::var_info[] = {
GOBJECT(avoid, "AVOID_", AC_Avoid),
#endif
#if AC_RALLY == ENABLED
#if HAL_RALLY_ENABLED
// @Group: RALLY_
// @Path: ../libraries/AP_Rally/AP_Rally.cpp
GOBJECT(rally, "RALLY_", AP_Rally),

View File

@ -95,10 +95,6 @@
#include <AC_Avoidance/AC_Avoid.h> // Stop at fence library
#endif
#if AC_RALLY == ENABLED
#include <AP_Rally/AP_Rally.h> // Rally point library
#endif
#include <AP_Camera/AP_Camera.h> // Photo or video camera
#if AP_SCRIPTING_ENABLED
@ -348,7 +344,7 @@ private:
#endif
// Rally library
#if AC_RALLY == ENABLED
#if HAL_RALLY_ENABLED
AP_Rally rally;
#endif

View File

@ -214,7 +214,3 @@
MASK_LOG_CAMERA | \
MASK_LOG_MOTBATT
#endif
#ifndef AC_RALLY
#define AC_RALLY DISABLED
#endif