Blimp: ensure ENABLE_SCRIPTING is always defined
This commit is contained in:
parent
9bc9179d8d
commit
e301595143
@ -816,7 +816,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
|
|||||||
// @User: Standard
|
// @User: Standard
|
||||||
AP_GROUPINFO("PILOT_SPEED_DN", 24, ParametersG2, pilot_speed_dn, 0),
|
AP_GROUPINFO("PILOT_SPEED_DN", 24, ParametersG2, pilot_speed_dn, 0),
|
||||||
|
|
||||||
#ifdef ENABLE_SCRIPTING
|
#if ENABLE_SCRIPTING
|
||||||
// @Group: SCR_
|
// @Group: SCR_
|
||||||
// @Path: ../libraries/AP_Scripting/AP_Scripting.cpp
|
// @Path: ../libraries/AP_Scripting/AP_Scripting.cpp
|
||||||
AP_SUBGROUPINFO(scripting, "SCR_", 30, ParametersG2, AP_Scripting),
|
AP_SUBGROUPINFO(scripting, "SCR_", 30, ParametersG2, AP_Scripting),
|
||||||
|
@ -309,7 +309,7 @@ public:
|
|||||||
AP_Int16 land_alt_low;
|
AP_Int16 land_alt_low;
|
||||||
|
|
||||||
|
|
||||||
#ifdef ENABLE_SCRIPTING
|
#if ENABLE_SCRIPTING
|
||||||
AP_Scripting scripting;
|
AP_Scripting scripting;
|
||||||
#endif // ENABLE_SCRIPTING
|
#endif // ENABLE_SCRIPTING
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ void Blimp::init_ardupilot()
|
|||||||
|
|
||||||
startup_INS_ground();
|
startup_INS_ground();
|
||||||
|
|
||||||
#ifdef ENABLE_SCRIPTING
|
#if ENABLE_SCRIPTING
|
||||||
g2.scripting.init();
|
g2.scripting.init();
|
||||||
#endif // ENABLE_SCRIPTING
|
#endif // ENABLE_SCRIPTING
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user