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
Taranis custom telemetry screens
#16
Wow guys, that looks awesome! Another reason to get the Taranis Smile
Don't be a LOS'er, be an FPV'er :)  My Gear - Facebook - Instagram - Twitter
Reply
Login to remove this ad | Register Here
#17
(03-Nov-2016, 03:08 PM)tozes Wrote: Looking good Smile
Guess you fixed the issue with calculating the number of cells?

Edit: I'll post your video on post #1 if you don't mind.

Yes, it was exactly what I told you. I had Offset on Vfas but not on Cell. I worked the lap timer thing. It works wonders. I'll try making a video of it Later!

Of course you can post, it's your script!
Reply
#18
I am impressed how simple and great lua script.
But this code does not apply to my copter.

The firmware is betaflight.

To fix the problem, I opened your code~

In taranis telemetry parameter, 'Tmp' imply a flight mode, whether armed or disarmed.

But there is no Tmp in your code.

Instead, I found that there are switches parameter sa,se........and sf.

What  do these parameter indicate???? plz reply
Reply
#19
The script updates the displayed information based on the switch position rather than telemetry information (except for battery and signal data ofc). So all you need to do is change those parameters so it matches your radio setup.

For example, I use switch D for arm/disarm which translates into this:

Code:
local SW_ARM = 'sd'

If you use for example switch A, just change it like this and should work:

Code:
local SW_ARM = 'sa'
Reply
#20
(30-Oct-2016, 06:04 PM)tozes Wrote: Hey, the code and bmp files are now on github: https://github.com/tozes/taranis_telemetry

Let me know if you need some help.

Enjoy Smile

Hi,

Thanks for the great and perfect script.
How can I change the code to show total voltage on the battery indicator instead of showing cell's voltage.  Thinking
I think is better that the battery indicator will show full battery / total count since under Rssi is already cell's voltage

Thank you   Thumbs Up
Reply
#21
You just need to change the data source on line 39:

Code:
local DS_CELL = 'A4'

From the top of my head, I think A2 is the total voltage but you can confirm that in the telemetry config screen on your taranis. Just bear in mind that changing this will probably mess up the layout a bit because you'll now have 4 digits instead of 3. If this happens you can try to adjust the position and font size on line 76.
Btw, Cell- which is what you see under the RSSI-, is not the same as the cell voltage that you see on the left side of the screen. Cell- is the lowest cell voltage recorded since the last reset. This is useful because you can see how much you battery is sagging during flight.
[-] The following 2 users Like tozes's post:
  • Plum Pitiful, Ariel Drach
Reply
#22
Hi.

Nice work.

The Q X7 doesn't allow some of the lcd commands because of its smaller screen, like lcd.pixMap, so you can't display images.
If you are interested, i did a smaller and adapted version of this without any bmp file.
I had to remove some informations too.

   
[-] The following 2 users Like nerdboy's post:
  • Carl.Vegas, tozes
Reply
#23
Hey, nice job. I thought it would be cool to make a QX7 version of it but don't have one to test so I'm glad you did.
Would be cool to put the scripts together on github, what do you think? I moved the X9D files into it's own dir in case you feel like sending a pull request.

Cheers and welcome to the forum
[-] The following 1 user Likes tozes's post:
  • Carl.Vegas
Reply
#24
Id like to set this up eventually on my X7! But I am a complete virgin to lua scripts and opentx Tongue
The Obsession IS Real!
My Youtube and Instagram links
[-] The following 1 user Likes Drone0fPrey's post:
  • Carl.Vegas
Reply
#25
(22-Apr-2017, 10:24 AM)tozes Wrote: Hey, nice job. I thought it would be cool to make a QX7 version of it but don't have one to test so I'm glad you did.
Would be cool to put the scripts together on github, what do you think? I moved the X9D files into it's own dir in case you feel like sending a pull request.

Cheers and welcome to the forum

Just sent the pull request.

thanks for the welcome Smile
[-] The following 1 user Likes nerdboy's post:
  • tozes
Reply
#26
(24-Apr-2017, 03:04 PM)nerdboy Wrote: Just sent the pull request.

thanks for the welcome Smile

Merged and thanks a lot for the credits on the header Smile
Reply
#27
(23-Apr-2017, 03:02 AM)Drone0fPrey Wrote: Id like to set this up eventually on my X7! But I am a complete virgin to lua scripts and opentx Tongue

It's super easy, just get the script from github, configure it to match your switches (lines 35 to 40), upload it to the taranis SD card and pick it in the telemetry config screen Smile
[-] The following 1 user Likes tozes's post:
  • Drone0fPrey
Reply
#28
(24-Apr-2017, 09:05 PM)tozes Wrote: Merged and thanks a lot for the credits on the header Smile

You're welcome Smile
I'll pull another request soon, I'm modifying the cell calculation as if I do a hard punch on my setup when the battery is not full, it jumps down one cell...
Reply
#29
Hi i used your script as a template for myself.

Use this code snipet for a clock with leading zeroes. I also adjusted the Position a bit.

Code:
-- Top Right cell -- Current time
local function cell_4()
 local x1 = grid_middle + 2
 local y1 = min_y + header_height + 0

 local currdate = getDateTime()
 
 if currdate.hour < 10 then
   hour = "0"..currdate.hour
 else
   hour = currdate.hour
 end
 if currdate.min < 10 then
   mins = "0"..currdate.min
 else
   mins = currdate.min
 end
 if currdate.sec < 10 then
   secs = "0"..currdate.sec
 else
   secs = currdate.sec
 end

 
 
 lcd.drawText(x1 + 3, y1 + 2, hour .. ":" .. mins .. ":" .. secs, DBLSIZE)
end
Reply
#30
Here are my changes for correct handling of timer 1 and timer 2.
A lapsed timer will now show correct values and blinks inversed to show up.
Code:
-- Center right cell -- Timer1
local function cell_5()
 local x1 = grid_middle + 1
 local y1 = min_y + header_height + cell_height + 1

 -- Picture
 lcd.drawPixmap(x1 + 2, y1, "/SCRIPTS/TELEMETRY/BMP/t1.bmp")

 -- Show timer
 timer = model.getTimer(0)
 s = timer.value
 if s >= 0 then
   time = string.format("%.2d:%.2d:%.2d", s/(60*60), s/60%60, s%60)
    lcd.drawText(x1 + 21, y1 + 2, time, MIDSIZE)
 else
   s = -s
   time = string.format("%.2d:%.2d:%.2d", s/(60*60), s/60%60, s%60)
    lcd.drawText(x1 + 21, y1 + 2, time, MIDSIZE + INVERS + BLINK)
 end
end

-- Bottom right cell -- Timer2
local function cell_6()
 local x1 = grid_middle + 1
 local y1 = min_y + header_height + cell_height * 2 + 1

 -- Picture
 lcd.drawPixmap(x1 + 2, y1 + 1, "/SCRIPTS/TELEMETRY/BMP/t2.bmp")

  -- Show timer
 timer = model.getTimer(1)
 s = timer.value
 if s >= 0 then
   time = string.format("%.2d:%.2d:%.2d", s/(60*60), s/60%60, s%60)
    lcd.drawText(x1 + 21, y1 + 3, time, MIDSIZE)
 else
   s = -s
   time = string.format("%.2d:%.2d:%.2d", s/(60*60), s/60%60, s%60)
    lcd.drawText(x1 + 21, y1 + 3, time, MIDSIZE + INVERS + BLINK)
 end
end
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Crossfire diversity wrong telemetry data noize 15 1,747 22-Mar-2024, 06:21 AM
Last Post: Myman
  BetaFPV Elrs module not loading in a taranis X7 Stumpy 2 197 31-Jan-2024, 12:19 PM
Last Post: Stumpy
  No GPS telemetry data on my crossfire tx PJKMBAKER 3 591 11-Oct-2023, 12:04 PM
Last Post: SnowLeopardFPV
  Taranis & TD 100 [km] zomer 0 193 03-Sep-2023, 03:27 PM
Last Post: zomer
  Please help, losing telemetry while flying. Antek55 13 1,958 06-Aug-2023, 01:58 PM
Last Post: SnowLeopardFPV


Login to remove this ad | Register Here