A simple lua-based dashboard for the TBS Tango2
By default, you will see the cumulated voltages on the display screen. That means that the battery gauge on the left will display irrelevant informations. If you want to fetch average cells voltage, type set report_cell_voltage = ON
on Betaflight CLI.
set report_cell_voltage = ON
on Betaflight CLI.)The first as options to display more informations, it's called farl.lua :
I added a (very) light template system : you can edit farl.lua and fill the blank space that is on bottom of the screen with the following options :
-- If you set the GPS, it will no show Rssi Quality & Power ouput in order to keep a readable screen
-- Display the GPS Coordinates of the quad
local displayGPS = false
-- Display Signal to Noise ratio
local displayRssi = false
-- Display the Tango2 PowerOuput (useful to avoid to fly at 25mw in a bando)
local displayPowerOutput = false
-- Will be displayed only if displayGPS, Rssi and PowerOuput are set to false
local displayFillingText = true
You can choose what you want to display ! If everything is set to False, it will be blank as it was.
The second one is a more simple one, but occupying all the space available : it's the farllh.lua
Download the farl.lua script above and drag it to your radio. You should place this into your /SCRIPTS/TELEMETRY folder.
How to install:
If you copied the files correctly, you can now go into the telemetry screen setup page and set up the script as telemetry page.
Setting up the script as a telemetry page will enable access at the press of a button.
Since not everyone uses the same controller configuration as myself, here's some tips to edit the script for your uses...
To change which button arms the dashboard... please change the value of 'sa' to a different input here
To change to a two-stage arming mechanism, change the above option to a "logical" switch. Eg: armed = getValue('ls2')
. See: Issue #2
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.
To change which button sets your mode, please modify this line to a different input.
To change the name of each mode on the mode switch, please modify these lines
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.
For more information on how to program in Lua specifically for OpenTX, please See Here