This is a test of Lua scripts controlling a Copter using a velocity controller so that it flies a vertically oriented circle (like a Ferris Wheel or lollipop). The purpose of making this was to provide a simple example of the growing power of ArduPilot’s Lua scripting feature (originally developed by Michael du Breuil).
ArduPilot is already very powerful and flexible but even so many users want to customise their vehicle’s behaviour in some way, often in a way that is too specific to their setup for us to include in the core flight code. Lua scripts add a relatively safe and easy way for users to make these customisations without having to add a companion computer or learn C++.
This is a awesome video to show full detail how to configure… I really like it.
Thank you sir for this useful post share with us , this is very useful for me in future
Yes, scripting takes up quite a bit of memory. On Cube Orange (and probably Holybro Durandal) it’s fine but on most other boards, if you’re running Copter, you’ll need to disable some other features. Try these:
TERRAIN_ENABLE = 0 (turn off the SRTM database used for terrain following during missions)
Hey @rmackay9
I use terrain follow all the time since I stay at a hilly region. EK2_IMU_MASK=1 is default for CubePurple.
I switched from Master to stable. It got initialized.
Thank you.
OK great. Scripting is being actively enhanced these days though so you’ll find that the features available to scripting with Copter-4.0.3 are a bit less than we have in master. Anyway, thanks for trying it out!
Yes, that’s the camera I used in this recent video. You’ll need an RPI4 to go with it and you might want to get one of Stephen Dade’s PiConnectLite boards to make wiring easier but this is optional
Hey @rmackay9
Couldn’t get scripting working on Cube purple with AC4.0.3 stable even with terrain disabled. I can’t find the scripts folder at all in MAVFtp. I bought couple of Cube Purples for ground tests and other beta tests, But It already feels outdated. Scripts don’t run, Compass is not probed by default to have Fast sampling. Looks like H7 is the good investment.
Update: No luck with latest Dev with terrain disabled.