How i can import another lua script?
I trying write
MyLib = require('MyLib.lua')
MyLib.DoSomthing()
But it isn’t work
Lua: ./scripts/testScript.lua:1: attempt to call a nil value (global ‘require’)
How i can import another lua script?
I trying write
MyLib = require('MyLib.lua')
MyLib.DoSomthing()
But it isn’t work
Lua: ./scripts/testScript.lua:1: attempt to call a nil value (global ‘require’)
Not supported in the current state of ArduPilot’s Lua engine.
I see, thanks for the answer