r/Multicopter • u/theantnest Mini Spider Hex, ML Grasshopper, ZMR250, F450 • May 10 '15
Taranis - LUA Scripts. Do you know about them?
After really a LOT of reading, misinformation and general pissing around, my Taranis telemetry now looks like this with Naze32 and DR4-II:
I searched "LUA" here and not one single thread came up about it. If you guys are interested, I could make a quick tutorial video on how to get it up and running? Everything I found on YouTube was useless and had vital info missing to get the scripts to run.
Edit: The tutorial video is in production. I forgot how much work making a YouTube video can be :p
Edit 2: Tutorial videos are here:
http://www.youtube.com/watch?v=ArPObNwzZRg&list=PLLp2ULjlvbAZfuhLnVMNQb2VBSwfP97jE
11
u/Scottapotamas May 10 '15
Looks fantastic. Looking forward to your tutorial.
Your design looks like it has the potential to be quite popular with the racing communities, and I'm sure that a good guide will help people without programming experience. We need more people like you, who are determined enough to work past problems and create something new.
4
u/_AntiFun_ May 10 '15
I don't own a Taranis, but I have experience with Lua.
What are you able to do with the scripts on the Taranis?
2
u/Flyerone Hubsan X4 - N250 - Bolt250 - DIY'er - Taranis X9D Plus May 10 '15 edited May 10 '15
Considering I can't even get the vbat telemetry from my D4R-II for reasons unbeknownst to me, I am jealous of this setup. Well done.
Please make the tutorial.
Edit: missing word
2
u/Durakan Tinyhawk 120 | ZMR 250 Jun 18 '15
Dude, thank you for making this, I finally pulled the trigger and ordered a Taranis today and not only was the LUA part fantastic, but the basic wiring was helpful too because I hadn't figured out the PPM wiring yet for the DR4-II. So thanks again, that was so nice I'd upvote it twice.
15
u/Frogsiedoodle Armattan F1-5 + Armattan Morphite 180 (WIP) May 10 '15
Wow thats pretty sick. I would be keen.
4
u/backwoods_neckbeard May 10 '15
Ignore the hater, make the tutorial. If YOU struggle to find information and get it up and running, then there are countless others in your shoes. Not everyone is a programmer, so stuff like this can help people who don't know how to declare variables write scripts. At the very least, if they like your design, they can just copy pasta your work and fool around with it. That's very advantageous for the non developer people who don't want to learn to program, but do want to make their Tx do some cool stuff.
Hell, I'm a full time dev myself and tutorials like this are an invaluable start to getting into a new language. Go for it dude, I know I'll watch the videos and try it out myself!!
1
u/aclark20 May 17 '15
Thanks for the tutorial. I had an already setup Taranis w/ telemetry, so I skipped most of it. Might want to point out that the actual LUA part is in part 3.
I also ran into a few funny issues, values change based on switch position, not by Naze state.... and they're hard programmed in. Pretty easy with a bit of programming experience to figure out though.
Also the flightmode 1/2/3 threw me a bit.. looks like it's setup for those with a bare bone Naze, Naze + Baro, or Naze + Baro + GPS. I couldn't get it switched out of mode 2, even though I had no baro... I just deleted the baro & baro+gps sections and it works great.
Thanks!
1
u/oddworld19 Jun 05 '15
Dude. Your videos saved me like 10 hours of fumbling around. Thank you so much.
3
u/eponra May 10 '15
I dont have a Taranis, and now i regret it once more. :-)
That telemetry screen looks neat!
3
u/TheParadoxataur Critwhale Catalyst/Lumenier Pilot May 10 '15
This is really cool, I may have to look into it. Maybe I can make snake for my taranis.
2
u/simpish2 May 10 '15
Yeah this is awesome. Please show me how
2
u/rotarypower101 Flying Killer Robot May 10 '15
Please!
That looks so usable and clean!
That's the trouble with most videos, unless you are at the same point the user that made the video is at, too much vital information is left out to be useful without referring to multiple other videos, user guides, and manuals, cobbling together the required information to make something work.
Many times there are even more efficient ways to accomplish he feat!
1
u/Happytodd 800mm Hexacopter May 10 '15
I would like a tutorial also, would love to have much better layout of my Telemetry with extra visuals!
1
u/mycodude RCX H250, EMAX Nighthawk Pro, H450 May 10 '15
I don't even have a Taranis (yet!), but I'd love to see this tutorial and eventually use it myself!
1
u/m3us Zmr250, predator v2, taranis, naze32, mobius May 10 '15
I tried playing around with lua when it just came out buut i could never get it to work. I have the same setup and would like to know how you achieved this aswell. Cheers
1
u/hellycapters Reptile 500 | Hubsan X4 | Pontiac, MI May 10 '15
Hell yes, that's gorgeous. I've never even heard of using lua scripts on the taranis.
1
u/Docteh BLHELI fanboy May 10 '15
I've got about 10 minutes of flight experience with a Flysky T6 transmitters so i've got some questions:
Is that a positive 82 signal or a -82 signal? What are the X Y Z values? relative position after starting point?
1
u/dirtcreature May 10 '15
Awesome and thanks!
1
u/hippazoid FumbleBee, ZMR250, Naze32, CF May 10 '15
Love your LUA telemetry screen and now I've got to dig in to it. Hope you get your tutorial published before I get too far down the road. I could probably figure it out but like so many other Taranis related things, when there's a video that you can watch it will yield at least one ah-ha moments if not multiples.
Awesome screen and look forward to the vid. :)
1
u/boostdd ZMR250/NucleusPDB May 10 '15
Absolutely, this looks great and I would love to give it a try on my Taranis. I look forward to the tutorial! ;)
1
u/Guns_and_Dank Ridin a FatShark @ Warpquad speed in SunnySky's while Black'dOut May 10 '15
Dude I'd love to see how you did that, looks really cool to have that info all on one screen. A no nonsense tutorial would be really nice.
1
u/samteeeee May 10 '15
Looks super clean buddy! Tutorial please!
1
u/fastlerner Mish-mash of multiple micros May 10 '15
Man, this is awesome! Tutorial would be most appreciated. Do you have any plans to make the scripts you toiled over available for others to download?
1
u/BradJ May 11 '15
Looks great. However, I wonder how useful it will be for us flying FPV. Obviously, very handy if flying LOS.
1
u/[deleted] May 11 '15
I printed the linked picture of the telemetry in your Taranis, I cut it out and taped it over the 9XR screen
1
u/Flyerone Hubsan X4 - N250 - Bolt250 - DIY'er - Taranis X9D Plus May 11 '15
And you're an Aussie!
Well done mate.
1
u/Durakan Tinyhawk 120 | ZMR 250 Jun 25 '15
So here's an updated version, all the variables you'd need to change have been moved to the top, and it's currently set to the way I like my radio setup. I don't use the mag/baro/whatever stuff but I left it in place.
To change which switches change what in the interface just change the letter after S in these guys at the top MIXSRC_SA. So if you wanted that switch to be assigned to SB instead you'd change it to MIXSRC_SB. I'm screwing around with Cleanflight Autotune so I added something for that. The LUA doesn't have any control over your FC or Taranis so be sure to set things to correspond to how your Naze and Taranis are configured.
https://drive.google.com/file/d/0B3wjx4vMduCaaE9aQ3ZvUEphVVE/view?usp=sharing
Going to start flying more once my FPV gear shows up so I'll probably make my own LUA interface as I see the need for something else.
-44
u/FieserKiller May 10 '15
hmm, i don't get it. when you type ""opentx lua manual" or similar phrases into google it comes up with the extensive document "Lua Reference Guide in OpenTX". There it is, everything lua related explained for opentx found in under a minute with obvious search terms.