If you enjoy our forum, why not join us? :) Login removes all the ads too! Click here to register in a few simple steps

Login to remove this ad | Register Here
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LUA Script For Taranis Discussion
#1
Here is a discussion thread for LUA script programming on our Taranis Transmitters.
There are endless possibilities with what LUA script can do on your TX, I've just started learning it and find it very powerful and interesting.

I am by no mean an expert in this, but I have some experience in programming so I will try my best to help or provide ideas if you have any questions or comment.

What can LUA Script do on the Taranis


LUA script unlocks power of your Taranis transmitter.

Your Taranis TX is basically a computer, with switches, knobs and sticks. You can use LUA script to program the radio to do whatever you want with these controls.

Other radios might be custom built by manufacturer, and they assigned logic and to each switch, knob and stick to perform pre-built functions, which is unchangeable. You are stuck with that. Now you are allowed to customize this with LUA script and gives you more flexibility.


To learn about the basic syntax and format of Lua: http://open-txu.org/home/grad-school/lua...scripting/
Don't be a LOS'er, be an FPV'er :) -- Blog - Facebook - Instagram - Twitter - Google Plus
#2
Learning and Reference Resources:

2.1 Lua Reference manual - https://opentx.gitbooks.io/opentx-lua-reference-guide/content/lcd/lcd_functions-overview.html

2.2 Lua Reference manual - https://www.gitbook.com/book/opentx/opentx-2-2-lua-reference-guide/details

OpenTX - LUA Reference Guide
https://docs.google.com/document/d/1ILh9...asic?pli=1

Getting into LUA script: https://en.wikipedia.org/wiki/Lua_%28programming_language%29

Official LUA script website: http://www.lua.org/
Don't be a LOS'er, be an FPV'er :) -- Blog - Facebook - Instagram - Twitter - Google Plus
Reply
#3
I love me some good LUA scripts!
Reply
Login to remove this ad | Register Here
#4
I can vouch for that Oscar, it's easy and powerful indeed. I started playing with it one rainy day and I ended up with a telemetry script Big Grin

Here's a link to the thread (link to github is there too): http://intofpv.com/t-taranis-custom-telemetry-screens
[-] The following 2 users Like tozes's post:
  • PaulMek, Oscar
Reply
#5
Anyone put the updated (v1.0) LUA scripts on their Taranis recently? Some of the commonly used instructions appear out of date - written for when there was a separate zip for each radio. The 1.0 package is merged, with subs for each radio type. Do I just drag the scripts folder over and let it copy in all the subdirectories of each radio? Is there code in the LUA now to select the correct radio type from the sub directories?
Reply
#6
(01-Dec-2017, 11:38 PM)KhrashPadFPV Wrote: Anyone put the updated (v1.0) LUA scripts on their Taranis recently? Some of the commonly used instructions appear out of date - written for when there was a separate zip for each radio. The 1.0 package is merged, with subs for each radio type. Do I just drag the scripts folder over and let it copy in all the subdirectories of each radio? Is there code in the LUA now to select the correct radio type from the sub directories?

Wasn't aware of the new script, i will take a look tonight and let you know.
Don't be a LOS'er, be an FPV'er :) -- Blog - Facebook - Instagram - Twitter - Google Plus
Reply
Login to remove this ad | Register Here
#7
Just updated the guide, and confirm it's now working with the latest LUA script.

https://oscarliang.com/betaflight-change...s-taranis/
Don't be a LOS'er, be an FPV'er :) -- Blog - Facebook - Instagram - Twitter - Google Plus
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Help FrSky XM + Taranis Q X7, Problem with connection and firmware Neddail 4 982 26-Nov-2017, 05:26 PM
Last Post: Oscar
  Quick question for taranis/crossfire micro users paulsmith 1 118 21-Nov-2017, 11:00 PM
Last Post: TomP7715
  Taranis Error: Missing File Reload TX FW cche 1 110 21-Nov-2017, 11:00 PM
Last Post: paulsmith
  How to test Taranis TX range sushicanfly 2 149 12-Nov-2017, 12:42 PM
Last Post: unseen
  X4R-SB not communicating with taranis Norcaldrones 2 137 12-Oct-2017, 11:19 AM
Last Post: Dutch Drone Builder