Introduction to LUA Scripts in OpenTX

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 พ.ย. 2024

ความคิดเห็น • 82

  • @JR-kk6ce
    @JR-kk6ce 6 ปีที่แล้ว +2

    YES! There are endless possibilities of what can be done with Lua and other programming languages. We can take this "hobby" to its rightful place in advanced science. Onward into the future!

  • @OneTwo-wt8qv
    @OneTwo-wt8qv 6 ปีที่แล้ว

    "Flight Deck" is exactly why I have wanted an OpenTX radio. Getting Telemetry to work with my XJT Jr Module in a Turnigy 9XR Pro have been challenging... all this sounds GREAT ... NEW THINGS TO LEARN !!! .. cheers !

  • @GroundControlRC
    @GroundControlRC 6 ปีที่แล้ว +3

    Great information! I use Linux and I've familiar with most scripting languages available on Linux so I was familiar with LUA Scripts, however, I didn't realize LUA was used in OpenTX. Thanks for the info and Happy Flying!

    • @flywithtb5005
      @flywithtb5005 3 ปีที่แล้ว

      I have a question foryou too: Is it possible to program a lua script that would change the crossfire output power via and can be run via a switch? Actually I imagine it to be pretty simple something like xfire = crossfire.getmodule and then xfire.setoutputpower(2000) for 2W. And if I put that on a switch and another script with a different value on another switch then I can set the output power inflight with a switch without having to go into the menu lua script in my remote and change it manually with scrolling.

  • @petwog
    @petwog 6 ปีที่แล้ว +1

    As usual very well done and most helpful. Still working the sound issue on my X9D plus...limited time is my problem now!

  • @undermine28
    @undermine28 6 ปีที่แล้ว +5

    That LUA HUD script is insane.

  • @rl2109
    @rl2109 6 ปีที่แล้ว +1

    Thanks for posting this overview! Good stuff!

  • @sumerianrcpilot8889
    @sumerianrcpilot8889 5 ปีที่แล้ว

    Wooooow, a whole lot of info in minutes... Thanks mate

  • @timwsac
    @timwsac 6 ปีที่แล้ว +1

    Fantastic video thanks Lee

  • @twinturbostang
    @twinturbostang 4 ปีที่แล้ว

    Is it possible to write a lua script to take telemetry data, do calculations on it (such as calculate distance from GPS coordinates) and then stuff that back into the telemetry stream? That way I can log the new information to the SD card along with the other telemetry values.

    • @Painless360
      @Painless360  4 ปีที่แล้ว

      Yes you can. Happy flying!

  • @RCdiy
    @RCdiy 6 ปีที่แล้ว +5

    I guess I need to catch up with you and make a OpenTX Lua Script Overview Video.

    • @RCdiy
      @RCdiy 6 ปีที่แล้ว +1

      Maybe I’ll use your video on the website if okay with you????

    • @Painless360
      @Painless360  6 ปีที่แล้ว +1

      Happy for you to if you embed the TH-cam player.. :D

  • @KodinKing
    @KodinKing 4 ปีที่แล้ว

    I'm very familiar with LUA from Roblox as a game dev but never knew it was used in openTX

  • @MrOlezhandr
    @MrOlezhandr ปีที่แล้ว

    Can you please show where on SD card lua script, showed on 1:08? I Have R9SX with telemetry and it would be nice to see this dashboard on lcd)

    • @Painless360
      @Painless360  ปีที่แล้ว

      Which script?

    • @MrOlezhandr
      @MrOlezhandr ปีที่แล้ว

      @@Painless360 with dashboard

    • @Painless360
      @Painless360  ปีที่แล้ว

      There are many with that feature...

  • @flywithtb5005
    @flywithtb5005 3 ปีที่แล้ว

    Question: Is it possible to change the crossfire output power via a switch= And if yes does it require a custom lua script?

    • @Painless360
      @Painless360  3 ปีที่แล้ว

      I'm not aware of a way. If you figure it out please let me know.. Best of luck

  • @boy6named6zoen6
    @boy6named6zoen6 6 ปีที่แล้ว

    Hope they would do more with helicopters at frsky. They have build in rx into drone flight controllers and receivers for planes with build in stabilization but no flybarless units with frsky receiver build into it. The mhs brain 2 has some nice features if you hook up a frsky rx onto it with the smartport connected to a port on the brain 2 the newer esc's. Rpm , e-fuel gauge and many more telemetry straight from the fbl unit. Frsky js slowly getting track in the Heli community but frsky could do develop some Heli related stuff. Awesome video btw. If I need some indept frsky info i always search for the answers in your Playlist.

    • @Painless360
      @Painless360  4 ปีที่แล้ว

      th-cam.com/video/u-NykZnjRM0/w-d-xo.html may be worth a watch now.. Best of luck!

  • @abdulmuqtadir64
    @abdulmuqtadir64 4 ปีที่แล้ว

    Hi, I am using two current sensors and if the difference between the current consumption is more than 5A then there should be some kind of alarming. How can we do that? Thanks in advance

    • @Painless360
      @Painless360  4 ปีที่แล้ว

      You can use logical switches to detect and compare values from the telemetry sensors. Check out my OpenTX mix school to see more of the basics on how logical switches and special functions could be used to do this. Best of luck!

    • @abdulmuqtadir64
      @abdulmuqtadir64 4 ปีที่แล้ว

      @@Painless360 thanks for your reply,
      Actually I want to compare the values of two sensors, but in logical switches I am not getting any option which allow to get the difference between the values of two sensors

  • @diegoarpino2080
    @diegoarpino2080 4 ปีที่แล้ว

    Your sd screen shows stuff, when I go to mine, it doesnt show anything. It doesnt say "SD card" at the top. It says "SD-HC card." What does this mean? The screen is empty. What is this? How can I fix?
    Edit: I dont have the latest firmware flashed to s6r. Do I need the latest?
    Also, some of your links dont work.
    Thank you :)

    • @Painless360
      @Painless360  4 ปีที่แล้ว

      Not sure, this is an older video and a lot had changed since then. See my later videos for more up to date content. Happy flying!

    • @diegoarpino2080
      @diegoarpino2080 4 ปีที่แล้ว

      Painless360 no problem, thank you for tour quick replies!

    • @diegoarpino2080
      @diegoarpino2080 4 ปีที่แล้ว

      Wow, turns out that I still can select it and change it, it just doesn’t show it. This video helped so much :)
      By the way, you just saved my airplane. Thank you

  • @zebruhfpv8184
    @zebruhfpv8184 6 ปีที่แล้ว +2

    But most of us are flying FPV nowadays so isn't the display on the radio sorta out dated? Most of us have the same features through OSD

    • @Painless360
      @Painless360  6 ปีที่แล้ว +2

      Not everyone flies FPV and setup scripts for Crossfire and the S6R are handy ways to setup and manage connected devices ;)

    • @zebruhfpv8184
      @zebruhfpv8184 6 ปีที่แล้ว +1

      Painless360 I've yet to try a crossfire, I've heard only great things about them

    • @Painless360
      @Painless360  6 ปีที่แล้ว +1

      Very cool tech, works bloomin well and with CRSF it's a very funky system..

    • @samcorbin6744
      @samcorbin6744 5 ปีที่แล้ว

      When it comes to aviation, redundancy is never a bad thing!

  • @WmAllen23
    @WmAllen23 6 ปีที่แล้ว

    Do you know if it's possible to run 2 different lua scripts on the qx7s. I've got 2 builds, one running BF and the other Raceflight. Want to see if I can install both lua scripts to radio. Thank you.

    • @Painless360
      @Painless360  6 ปีที่แล้ว +1

      +AIRBORNE 88 you can have lots of different lua scripts on the radio, and just configure each model memory to use the one you need. Best of luck, happy flying!

    • @WmAllen23
      @WmAllen23 6 ปีที่แล้ว

      Thank you!

  • @paulgiusti6779
    @paulgiusti6779 6 ปีที่แล้ว

    Thank you for the great information ! How about a video on the different ways to link 2 Frsky TX's for training? I.e. blue tooth via X7s or with an audio cable?

    • @Painless360
      @Painless360  6 ปีที่แล้ว

      I don’t have two BT enabled radios but you can see the wired setup by searching for ‘trainer painless360’ happy flying!

    • @paulgiusti6779
      @paulgiusti6779 6 ปีที่แล้ว

      perfect, thank you again!

  • @nuttieprocfpv3217
    @nuttieprocfpv3217 6 ปีที่แล้ว +1

    Can you use the crossfire micro on the X7 without the modding with that new lua script?

    • @Painless360
      @Painless360  6 ปีที่แล้ว +2

      This won't fix the slow speed in the QX7 inverter. See the Crossfire series for more about that. (H/W fix or OpenTX 2.2.1..)

  • @blackmennewstyle
    @blackmennewstyle 6 ปีที่แล้ว +4

    Be careful people latest version of OpenTX (2.2.1 when i write this comment!) has a little glitch on X9D and X9D+ which can causes LUA Scripts to crash with a frozen screen displaying some kind of "memory error"!
    Don't tell i did not warn you!
    LUA Scripts rock though :)

    • @chriswhitehead6095
      @chriswhitehead6095 6 ปีที่แล้ว +2

      Yes, i have seen this on my X9D+

    • @raylotier
      @raylotier 6 ปีที่แล้ว

      Yup, sure does. Dang it!
      github.com/betaflight/betaflight-tx-lua-scripts/commit/0913d0735932f57057d86f69fe6bde1f37e2b5e7

  • @Ultravox5600
    @Ultravox5600 6 ปีที่แล้ว

    Hey is your channel logo a reference to the Capsule gang from the Akira anime? The matrix? Or is it just an L 5 acetaminophen pill?

    • @Painless360
      @Painless360  6 ปีที่แล้ว +1

      +Ultravox5600 blimey! You're one of the first to spot it! I'm a huge Akira fan and always liked the logo on Kaneda jacket. The pill then became my favourite player icon in Halo and it stuck! Happy flying!

  • @rcalert1731
    @rcalert1731 5 ปีที่แล้ว

    im havig trouble opening the kiss lua script, can you help me with thad? cant find the right answer on google yet :(

    • @rcalert1731
      @rcalert1731 5 ปีที่แล้ว

      @@Painless360 thanks man,
      i just got it to work, found someone on facebook who helped me.
      thanks for the vid tho. learned a few things about it

    • @Painless360
      @Painless360  5 ปีที่แล้ว

      Why not post the answer so others can find it?

    • @rcalert1731
      @rcalert1731 5 ปีที่แล้ว

      i wish i could, but heres a try.
      i needed to go into the sd cart stuf and run the script there kissSP.luac* (in the sd cart contents) instead of opening a second telem. screen/page and run thad as script (this gave me the error: script syntax error)
      this is with open tx 2.2.3 and the latest relese kiss lua
      next to thad its just like everywhere explained. paste all the items from the lua download in the /scrips/telem./ folder
      i hope this is helpfull

    • @Painless360
      @Painless360  5 ปีที่แล้ว +1

      Cool. Thanks for posting :D

  • @Chris-vc1dh
    @Chris-vc1dh ปีที่แล้ว

    hello, how do I update LUA in taranis 9Xplus please?

    • @Painless360
      @Painless360  ปีที่แล้ว

      The same way you installed it. It'll go on a directory on the SD card. Check the documentation for the LUA script you want. I'd always copy the SD card before you change anything for safety... Happy flying

  • @MarcosLimadrones
    @MarcosLimadrones 6 ปีที่แล้ว

    can you give me the step by step install the moon script with the hud flight deck cable for X9D + with the pixhawk, tanks

    • @Painless360
      @Painless360  6 ปีที่แล้ว

      Please see my video on that in the Pixhawk 2.1 series..

    • @MarcosLimadrones
      @MarcosLimadrones 6 ปีที่แล้ว +1

      Painless360 tanks, my pixhawk is 2.4.8

    • @MarcosLimadrones
      @MarcosLimadrones 6 ปีที่แล้ว

      Ok tanks

  • @MCsCreations
    @MCsCreations 6 ปีที่แล้ว +1

    Really nice! :)

  • @MarcosLimadrones
    @MarcosLimadrones 5 ปีที่แล้ว

    Good morning, I have a yappu script from my PIXHAWK on x9d +, I would like to install the betaflight moon script and be able to use the 2 more I am not getting what I can do ???

  • @chazecramer5997
    @chazecramer5997 6 ปีที่แล้ว

    Love your channel is there a step by step lua install new with the taranis

    • @Painless360
      @Painless360  6 ปีที่แล้ว

      Not sure I understand the question..

  • @ruedogs
    @ruedogs 6 ปีที่แล้ว +1

    has anyone done a decent lua script for iNav yet like the one you show in this vid for the mavlink /pixhawk system????

    • @johnbilodeau6296
      @johnbilodeau6296 6 ปีที่แล้ว +2

      iNav can output mavlink telemetry. So, the lua script for pixhawk who use/parse mavlink messages should work.

    • @chriswhitehead6095
      @chriswhitehead6095 6 ปีที่แล้ว

      github.com/iNavFlight/LuaTelemetry

    • @ruedogs
      @ruedogs 6 ปีที่แล้ว +2

      Jean-Sébastien Bilodeau ledgend thankyou

    • @osiganos
      @osiganos 6 ปีที่แล้ว

      github.com/iNavFlight/LuaTelemetry works perfect

  • @MrBumbles2
    @MrBumbles2 6 ปีที่แล้ว +1

    hi ?? new too open tx just got a qx7 for xmas firmware on it is 2.2 , from march of last year, i do not see it listed on opentx, been reading and watching vids . got alot to learn being old as dirt my have things changed since i started rc in the early seventies , ?? should i just load the new 2.2.1 is it stable and ready ?? this is the firmware on it stock 2.2.0 95b0a21c race? i see that nowhere but im new and figure i better load the newest from what i read.

    • @Painless360
      @Painless360  6 ปีที่แล้ว +2

      I'd suggest starting with the QX7 series and then moving onto the OpenTX mix school on this channel. Best of luck!

    • @MrBumbles2
      @MrBumbles2 6 ปีที่แล้ว +1

      Painless360 thanks I've started that, and subscibed, good info all ready rolling on it. I'll never go back to hitec, and I can go with head tracker on several projects, no more turning knobs while in flight.

  • @seigedan
    @seigedan 5 ปีที่แล้ว

    hi my friend, can u do a video for jumper T16 ? Appreciate that

    • @Painless360
      @Painless360  5 ปีที่แล้ว

      I have an entire playlist for it.. check it out..

    • @seigedan
      @seigedan 5 ปีที่แล้ว

      @@Painless360 I watch 6 jumper T16 if your video. They never cover how to install betafligjt lua scipt. But they are great video.

  • @derrickmitchell39dm
    @derrickmitchell39dm 4 ปีที่แล้ว

    As good as the L9R is it's disappointing that you can't get telemetry. I got the L9R on my ZOHD xl dart w/ GPS and LUA scripts is nonexistent.

    • @Painless360
      @Painless360  4 ปีที่แล้ว +1

      Indeed. Sadly when Frsky copied the Crossfire system to create their long range system they omitted several key features. Happy flying!

  • @dronetrooperfpv7810
    @dronetrooperfpv7810 6 ปีที่แล้ว

    Lua script for Horus x10s for raceflight?

    • @Painless360
      @Painless360  6 ปีที่แล้ว

      Possibly, I don't use raceflight here so I don't know. The forums and the wiki pages are your best bet.

  • @johnal4560
    @johnal4560 6 ปีที่แล้ว

    SO this Lua script can be used for dji Naza ?and does the Radio have to have an external memory ? i uploaded open TX to my Turnigy 9x so would i be able to use in my Turnigy i love to see plane heading direction in Lua script Thx

    • @Painless360
      @Painless360  6 ปีที่แล้ว

      Which script are you talking about? There are lots shown in the video..