AP_Scripting: correct compilation when !AP_SCRIPTING_BINDING_VEHICLE_ENABLED

Fixes:

../../libraries/AP_Scripting/lua_bindings.cpp: In function 'int lua_AP_Vehicle_set_target_velocity_NED(lua_State*)':
../../libraries/AP_Scripting/lua_bindings.cpp:1240:23: error: 'check_AP_Vehicle' was not declared in this scope; did you mean 'check_AC_Fence'?
 1240 |     AP_Vehicle * ud = check_AP_Vehicle(L);
      |                       ^~~~~~~~~~~~~~~~
      |                       check_AC_Fence
compilation terminated due to -Wfatal-errors.
This commit is contained in:
Peter Barker authored and Andy Piper committed 2026-01-06 10:37:48 +00:00
1 parent 8384ec1b38
commit 8ea793aca7
1 file changed
+2 -2
+2 -2
View File
@@ -1226,7 +1226,7 @@ int lua_gps_inject_data(lua_State *L)
#endif // AP_GPS_ENABLED
#if AP_VEHICLE_ENABLED
#if AP_SCRIPTING_BINDING_VEHICLE_ENABLED
int lua_AP_Vehicle_set_target_velocity_NED(lua_State *L)
{
const int args = lua_gettop(L);
@@ -1258,6 +1258,6 @@ int lua_AP_Vehicle_set_target_velocity_NED(lua_State *L)
lua_pushboolean(L, data);
return 1;
}
#endif // AP_VEHICLE_ENABLED
#endif // AP_SCRIPTING_BINDING_VEHICLE_ENABLED
#endif // AP_SCRIPTING_ENABLED