If you enjoy our forum, why not join us? :) Login removes all the ads too! Click here to register in a few simple steps

Login to remove this ad | Register Here
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 a FPV'er :) -- Blog - Facebook - Instagram - Twitter - Google Plus
Reply
#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
Login to remove this ad | Register Here
#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
Login to remove this ad | Register Here
#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 channel. My Threads
[-] The following 1 user Likes Drone0fPrey's post:
  • Carl.Vegas
Reply
Login to remove this ad | Register Here
#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
Login to remove this ad | Register Here
#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
Login to remove this ad | Register Here


Possibly Related Threads...
Thread Author Replies Views Last Post
  Help Taranis stuck on first screen SkinnyShark 6 1,463 23-Sep-2017, 10:36 PM
Last Post: StaticDet5
  Help Taranis timer CaCondor 6 207 17-Aug-2017, 02:58 AM
Last Post: CaCondor
  Help no Bootloader with Taranis QX7 daprato 0 119 16-Aug-2017, 01:09 AM
Last Post: daprato
  Help FrSky XM + Taranis Q X7, Problem with connection and firmware Neddail 2 379 26-Jul-2017, 07:47 PM
Last Post: voodoo614
  Help RSSI inside TX "Taranis plus" Alexander 4 231 10-Jul-2017, 05:37 PM
Last Post: Alexander