Skip to content

Commit

Permalink
AntennaTracker: move from ENABLE_SCRIPTING to AP_SCRIPTING_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Nov 15, 2021
1 parent 5143685 commit c2c1417
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion AntennaTracker/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions AntennaTracker/Tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

#include "AP_Arming.h"

#if ENABLE_SCRIPTING
#if AP_SCRIPTING_ENABLED
#include <AP_Scripting/AP_Scripting.h>
#endif

Expand Down Expand Up @@ -116,7 +116,7 @@ class Tracker : public AP_Vehicle {
ModeServoTest mode_servotest;
ModeStop mode_stop;

#if ENABLE_SCRIPTING
#if AP_SCRIPTING_ENABLED
AP_Scripting scripting;
#endif

Expand Down
4 changes: 2 additions & 2 deletions AntennaTracker/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c2c1417

Please sign in to comment.