Blimp: ensure ENABLE_SCRIPTING is always defined

This commit is contained in:
Peter Barker 2021-11-15 12:16:28 +11:00 committed by Peter Barker
parent 9bc9179d8d
commit e301595143
3 changed files with 3 additions and 3 deletions

View File

@ -816,7 +816,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
// @User: Standard
AP_GROUPINFO("PILOT_SPEED_DN", 24, ParametersG2, pilot_speed_dn, 0),
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
// @Group: SCR_
// @Path: ../libraries/AP_Scripting/AP_Scripting.cpp
AP_SUBGROUPINFO(scripting, "SCR_", 30, ParametersG2, AP_Scripting),

View File

@ -309,7 +309,7 @@ public:
AP_Int16 land_alt_low;
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
AP_Scripting scripting;
#endif // ENABLE_SCRIPTING

View File

@ -83,7 +83,7 @@ void Blimp::init_ardupilot()
startup_INS_ground();
#ifdef ENABLE_SCRIPTING
#if ENABLE_SCRIPTING
g2.scripting.init();
#endif // ENABLE_SCRIPTING