mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
AP_Scripting: add require with sandbox inheritence
This commit is contained in:
1 parent
350f718745
commit
306b14d8dc
8 files changed
+114
-51
No files matched your search
@@ -572,3 +572,9 @@ int lua_get_PWMSource(lua_State *L) {
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int lua_get_current_ref()
|
||||
{
|
||||
auto *scripting = AP::scripting();
|
||||
return scripting->get_current_ref();
|
||||
}
|
||||
Reference in new issue
Block a user