I’ve decided to learn LUA and how it’s implemented on ArduPilot. I’ll probably also take a look at how it’s implemented on OpenTX.
I’ve found several acceptable reference texts, established a git repository, installed GIT, and Visual Studio Code as an IDE.
Seemed to me the easiest way to get some code samples was to clone Yaapu - so I’ve done that. Interesting - I hadn’t realized that LUA could be pre-compiled.
I tried running a Yaapu pre-compiled script on my computer that’s running LUA 5.3.6 - it gave an error because of a version problem.
So it seems OpenTX runs some other version of LUA - and I need to watch out for version compatibility if I pre-compile lua chunks.
I was told that ArduCopter supports LUA 5.3.5. I’ll be interested to find out of it also support pre-compiled code - and if version issues exist.
I’m looking forward to being more involved.