I’m interested in exploring/implementing some of the LUA scripting capabilities in Ardupilot. AP documentation suggests that the scripts be placed in /APM/scripts, and to create it if it doesn’t exist.
I have created that directory on my RPi, but Mission Planner messages indicate “Lua: No scripts to run”. I’m curious whether this directory is supposed to exist elsewhere (as a subdirectory somewhere?). It is unclear to me what Ardupilot sees as its root directory.
I’m glad you asked that! I have recently updated Mission Planner, and MAVFTP doesn’t seem to exist as other people have shown/described it. I was curious whether it had been removed from the program.
I had never used it in a previous edition, so I couldn’t tell you whether I have ever even seen it before.
It’s hard to say but, according to the Mission Planner’s GitHub, the MAVFtp feature has been implemented recently. So it could be just a version issue.
Hi all. I have created the scripts folder in both of the above suggested locations:
/opt/ardupilot/navio2/arducopter-3.6/bin/scripts/
and
/var/lib/ardupilot/scripts/
Neither seems to have worked. I am still getting the message “Lua: No scripts to run” in mission planner.
Has anyone else managed to use lua scripts on Navio2?
I am running Copter-4.0.3 on Navio2 by running the latest Emlid image and replacing the arducopter binary.
I have turned on lua scripting by setting SCR_ENABLE to 1.
The script I am trying to run is called simple_loop.lua:
function update()
Darn. My next thoughts are to make a shell script that copies the lua script into every folder Not sure that will help though, I’m guessing lua scripting is just not set up properly for Navio2