Coder Social home page Coder Social logo

andrewfarley / taranis-xlite-q7-lua-dashboard Goto Github PK

View Code? Open in Web Editor NEW
70.0 9.0 57.0 381 KB

A simple lua-based dashboard for the OpenTX XLite/QX7 Transmitters

Lua 100.00%
xlite telemetry-page transmitter opentx opentx-xlite sd-card opentx-companion lua

taranis-xlite-q7-lua-dashboard's Introduction

Taranis-XLite-Q7-Lua-Dashboard

A simple lua-based dashboard for the OpenTX XLite/QX7 Transmitters

A cool review and overview and howto video by a fellow user

Features

  • Battery voltage (numerical and graphical)
  • Transmitter battery percentage
  • Model name
  • Time
  • RSSI (graphical and icon (top right))
  • Flight Timer, perfect for whooping
  • ANIMATED QUAD WHEN ARMED!!!

Author

Installing

Download the farl.lua script above and drag it to your radio. You should place this into your /SCRIPTS/TELEMETRY folder.

How to install:

Bootloader Method

  1. Power off your transmitter and power it back on in boot loader mode.
  2. Connect a USB cable and open the SD card drive on your computer.
  3. Download and copy the the scripts to appropriate location on your SD card. NOTE: If the folders do not exist, create them.
  4. Unplug the USB cable and power cycle your transmitter.

Manual method (varies, based on the model of your transmitter)

  1. Power off your transmitter.
  2. Remove the SD card and plug it into a computer
  3. Download and copy the the scripts to appropriate location on your SD card. NOTE: If the folders do not exist, create them.
  4. Reinsert your SD card into the transmitter
  5. Power up your transmitter.

If you copied the files correctly, you can now go into the telemetry screen setup page and set up the script as telemetry page.

Adding the script as a telemetry page

Setting up the script as a telemetry page will enable access at the press of a button. These instructions are for the XLite. The Q7 will also work but the instructions will be a bit different.

  1. Hold the circular eraser D-Pad on the right side of the controller to the right until the Model Selection Menu Comes up
  2. Press the eraser to the left briefly to rotate to page 13/13 (top right)
  3. Press the eraser to the bottom position to select the first screen (which should say none)
  4. Press down on the eraser so the "None" is flashing
  5. Press right on the eraser repeatedly until it goes to "Script", then press down on the eraser to confirm.
  6. Press right on the eraser to select which script, then press down on the eraser should bring up a menu, and "farl" should be in there, select it and press down on the eraser.
  7. Press the bottom button to back out to the main menu.
  8. From now on, while on the main menu with this model, simply move the eraser to the bottom position for about 2 seconds and it will activate your first telemetry screen!

Script Editing / Modification Notes

Since not everyone uses the same controller configuration as myself, here's some tips to edit the script for your uses...

  1. To change which button arms the dashboard... please change the value of 'sa' to a different input here

  2. To change to a two-stage arming mechanism, change the above option to a "logical" switch. Eg: armed = getValue('ls2'). See: Issue #2

  3. To invert the arming switch to be backwards from how it is (eg: if you are armed when this dashboard says it is disarmed) please modify the code here. Typically you'd just invert all the < and >'s in those two lines related to armed.

  4. To change which button sets your mode, please modify this line to a different input.

  5. To change the name of each mode on the mode switch, please modify these lines

  6. To setup your handset to do a timer this is a standard OpenTX feature. You can google how to do this, or see this bug report for more info.

  7. For more information on how to program in Lua specifically for OpenTX, please See Here

Support, etc

  • Please feel free to submit issues, feedback, etc. to the gitlab page, or email me! :) Any time you guys do, I will try to update this README to include more information for future users.

taranis-xlite-q7-lua-dashboard's People

Contributors

andrewfarley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

taranis-xlite-q7-lua-dashboard's Issues

Timer

Thanks for a great Lua script! Could you please explain how i can invert the timer? I have inverted the arming function and the flight modes to match up with my transmitter, but now the timer runs when disarmed and stops when i arm, and i havent been able to solve it. Thanks!

farl.lua for tango 2 have no quad armed animate

Hi~

the farllh.lua version for tango 2 have quad armed animate, but the farl.lua for tango 2 have no armed animate, should I need to set some parameter to active the animate manually?

Thanks,
Zax

VFAS to High?

I´am currently setup my Taranis QX7 with that lovely Lua Script.
Unfortunitly there are some promplems that i have encountered.
My VFAS Sensor getting me values from 10.8 to 16.8 depends on the battery i fly,
which i want to show on the bottom.
If I disconnect the VFAS sensor the script works fine with my switches, clock, RSSI, Timer and QX7 Voltage. There is only a problem when i activate that voltage sensor in my OpenTX.
I think there is this problem because the script expects an lower number.
I tried my best for several hours but nothing seems to help.

I want to show the VFAS Voltage on the Bottom with the fat numbers and that divided by 4(because i fly an 4s Lipo) shown in the graph on the left side on the screen as supposed.

Thank you, stay healthy and some some happy easter days.

Greetings from germany,
Chris

ELRS 3.0 support

adjust to work correctly with elrs 3.0, e.g. the lua shows 500hz when 250hz is selected. This was not the case with elrs 2.0 and below

Documentation

Do you have any official documentation regarding the XLite radio?

Where I can find a description of the method getValue?

Thanks.

Logical switch

It looks great!
I use a logical switch to arm my quads, do you know how I can refer to a logical switch (logical switch 2) instead of a physical switch in your code?:
armed = getValue('sa')

thanks

Script LUA not working

Hello,
Thank you for all the work provided but your script no longer works on my Tango 2 (FredomTX 1.29 / Crossfire 6.06)
I have a "Syntax Error" message.
Do you have a solution?

switch mappings

hi Dude, really like the telem screen. its exactly whats needed. However you have pre defined the mapping for the armed and flight modes.

can you detail how to change the mappings in the script so that we can change them to other mappings if were using something different.

for example you have arm on SA but i use SC
and i use SA for flight mode.

im also having an issue with the timer, how do you trigger the timer to start? is it a countdown or a count up?

non-issue / screen #

if i put this as screen 2 on my x-Lite, how do i get there. once screen 1 (PIDS) show, i can't figure out how to show farl.

Mode Classification

This isn't an "issue" per say, more of request from someone that doesn't know what they are doing.

I want to change the wording order when I use my "mode" switch. The current modes, from what I recall, are Acro, Horizon and Air mode. I would like to change mine to Angle mode, Air mode, Acro mode but I just can't figure how to do so.

I've changed my battery voltage values and switch assignments without an issue.

In the event it matters: I'm using a Q-X7S running OpenTX 2.2.3. Unbelievable work btw, this Lua Script is amazing.

Battery voltage reported as 0 on X-lite S + Tracer TX

Hey.

I know i must be doing something wrong, but my X-Lite S/TBS Tracer TX/RX is showing battery voltage as 0.00.
The graphical representation is empty as well. Tried with full batteries and with some not so full ones (3.7v)
I have the same exact issue on a Tango 2 w/ Crossfire Nano RX. I know i am missing something obvious, but what?

Sorry, probably not the correct place to post this, but i cannot figure out where to send it :(

Fly Timer

The Fly timer doesnt work. If i put a timer under my model, you see an timer on the normal screen, but not on the lua script. How is the Fly Timer related to something? How to configure this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.