mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-02-08 12:12:36 +08:00
AP_Scripting: Add location and ahrs user data
This commit is contained in:
committed by
WickedShell
parent
9dd36ba511
commit
b45970fded
@@ -96,6 +96,7 @@ lua_scripts::script_info *lua_scripts::load_script(lua_State *L, char *filename)
|
||||
lua_getglobal(L, "get_sandbox_env");
|
||||
if (lua_pcall(L, 0, LUA_MULTRET, 0)) {
|
||||
gcs().send_text(MAV_SEVERITY_CRITICAL, "Scripting: Could not create sandbox: %s", lua_tostring(L, -1));
|
||||
hal.console->printf("Lua: Scripting: Could not create sandbox: %s", lua_tostring(L, -1));
|
||||
return nullptr;
|
||||
}
|
||||
lua_setupvalue(L, -2, 1);
|
||||
|
||||
Reference in New Issue
Block a user