AntennaTracker: move from ENABLE_SCRIPTING to AP_SCRIPTING_ENABLED

This commit is contained in:
Peter Barker 2021-11-15 16:08:32 +11:00 committed by Peter Barker
parent 514368537b
commit c2c1417657
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

@ -32,9 +32,9 @@ void Tracker::init_ardupilot()
log_init();
#endif
#if ENABLE_SCRIPTING
#if AP_SCRIPTING_ENABLED
scripting.init();
#endif // ENABLE_SCRIPTING
#endif // AP_SCRIPTING_ENABLED
// initialise compass
AP::compass().set_log_bit(MASK_LOG_COMPASS);