Lua Script Help/Documentation

Hi, I’m looking for tutorials and more info about using Lua scripts in arducopter and I can’t find much. Does anyone have any information on how I can get started?

Thanks.

Hi @LukasMarkussen

I’ve only just started on the documentation side of scripting, I actually sent in the first real PR for adding documentation to the wiki last night, it still hasn’t been reviewed at all, but is available here: https://github.com/ArduPilot/ardupilot_wiki/pull/1807

1 Like

Check these out:
http://ardupilot.org/plane/docs/common-frsky-passthrough.html?highlight=lua

http://ardupilot.org/plane/docs/common-frsky-telemetry.html?highlight=lua

https://docs.px4.io/en/peripherals/frsky_telemetry.html

https://www.rcgroups.com/forums/showpost.php?p=39766391&postcount=1

Good luck.

Thanks! Do you think it would be possible for me to write a Lua script that activates when the vehicle is powered on? I just want it to auto takeoff and then loiter above its takeoff point.

Hi @LukasMarkussen sorry about the delay.

The scripts are automatically started when the vehicle powers on, so that part is quite achievable. However we have not yet exposed manipulation of the vehicles flight mode or mission to scripting, so you can’t currently use it to fly to a given spot as you described above.

Nice work @WickedShell

Did the LUA integration advanced ?