AP_Scripting: Add location and ahrs user data

This commit is contained in:
Michael du Breuil
2019-01-21 16:00:57 -07:00
committed by WickedShell
parent 9dd36ba511
commit b45970fded
4 changed files with 371 additions and 10 deletions

View File

@@ -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);