Page 1 of 1

How do you ue Lua?

Posted: Mon Nov 11, 2024 8:24 pm
by mk e
I see Lua mentioned, I see Lua channels in TS, I see a wiki page with available Lua commands, but nowhere can I find any info on how to actually set it up and use it? Or examples or ideally a library of available and tested functions? Did I miss that stuff in the wiki or forum somewhere? Or is it still in development and not ready for uses to use?

Re: How do you ue Lua?

Posted: Thu Nov 14, 2024 1:15 am
by AndreyB
Lua is very alive

Examples are at https://github.com/rusefi/rusefi/tree/master/firmware/controllers/lua/examples

Sounds like https://github.com/rusefi/rusefi/wiki/Discord is the-most-alive option to talk to humans these days

Re: How do you ue Lua?

Posted: Thu Nov 14, 2024 2:37 pm
by mk e
AndreyB wrote:
Thu Nov 14, 2024 1:15 am

Sounds like https://github.com/rusefi/rusefi/wiki/Discord is the-most-alive option to talk to humans these days
Which almost certainly means that it's by far the most problematic ;) What you have in the wiki is much better than anything I found in the FW link, you have good commenting in the wiki, the examples in the FW have basically none so they require decent Lua fluency to read and make sense of.

How is a Lua script loaded into a rusEFI controller? Did I miss those instructions in the wiki?