AntennaTracker: ensure ENABLE_SCRIPTING is always defined

This commit is contained in:
Peter Barker 2021-11-15 12:16:27 +11:00 committed by Peter Barker
parent fd128066ad
commit 44920856d3
3 changed files with 4 additions and 4 deletions

View File

@ -456,7 +456,7 @@ const AP_Param::Info Tracker::var_info[] = {
GGROUP(pidYaw2Srv, "YAW2SRV_", AC_PID),
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
// @Group: SCR_
// @Path: ../libraries/AP_Scripting/AP_Scripting.cpp
GOBJECT(scripting, "SCR_", AP_Scripting),

View File

@ -54,7 +54,7 @@
#include "AP_Arming.h"
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
#include <AP_Scripting/AP_Scripting.h>
#endif
@ -116,7 +116,7 @@ private:
ModeServoTest mode_servotest;
ModeStop mode_stop;
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
AP_Scripting scripting;
#endif

View File

@ -32,7 +32,7 @@ void Tracker::init_ardupilot()
log_init();
#endif
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
scripting.init();
#endif // ENABLE_SCRIPTING