Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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 :)  My Gear - Facebook - Instagram - Twitter
Reply
Login to remove this ad | Register Here
#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 :)  My Gear - Facebook - Instagram - Twitter
Reply
#3
I love me some good LUA scripts!
Reply
#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?[Image: r0WNVN0l.png]
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?[Image: r0WNVN0l.png]

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 :)  My Gear - Facebook - Instagram - Twitter
Reply
#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 :)  My Gear - Facebook - Instagram - Twitter
Reply
#8
Hi Oscar,
That guide is great thnx!
One thing though, in my case, I use Taranis Q X7, the menu is available and shows the first page.
But I can't navigate inside that page or to the other pages. (edit: I fixed that follow the link below.)
The guide doesn't contain guidance on how this should work.
At this moment I am still figuring out if there is something wrong or it is me being a noob :-D
separate post: https://intofpv.com/t-taranis-q-x7-lua-s...navigation
Reply
#9
Hi,
I own a Taranis X9D+ (not 2019) and I already installed lua script for inav and now I want a script for changing pid's and to control VTX.
What lua script should I get and where do I get it?
Why I find all over the internet lua script for betaflight? why are they related?
Thanks.
Reply
#10
As far as I know, there is not lua script for changing PID and VTX settings for iNav. Betaflight is a different firmware for the FC. And generally the Lua Script is specified to the FC firmware. Although, I think iNav telemetry Lua Script is mostly compatible with Betaflight. Can someone correct me if I am wrong.
Reply
#11
I have a Taranis X9d+ with a gps module. This reports actual boat speed in the display. I want to show scale speed.
Anyone know if this can be done?

Thanks
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  BetaFPV Elrs module not loading in a taranis X7 Stumpy 2 161 31-Jan-2024, 12:19 PM
Last Post: Stumpy
  Taranis & TD 100 [km] zomer 0 185 03-Sep-2023, 03:27 PM
Last Post: zomer
  Help RSSI callout Taranis QX7/OpenTX? swequad 1 254 13-Jul-2023, 03:05 PM
Last Post: SnowLeopardFPV
  No tools/menu available (Taranis QX7) Felynx 6 3,750 19-May-2023, 06:41 AM
Last Post: BadRaven
  Solved TX16S w/ELRS 3 LUA Script Not Loading Isoatomic 8 4,965 14-May-2023, 02:34 PM
Last Post: budatxiki


Login to remove this ad | Register Here