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
#1
Is anyone using custom telemetry screens on the Taranis?

I was looking into the lua scripting support a few days ago and realised how easy it is to write a telemetry screen so ended up creating one:


If you also have, please share so everyone can see and get some inspiration.

The script and bmp files are available on github: https://github.com/tozes/taranis_telemetry

Here's a video of it in action made by gcacciola:
[-] The following 3 users Like tozes's post:
  • Oscar, gcacciola, sirdude
#2
I really need to get a Taranis. Do you get voice alerts about everything on the screen as well?
Current quad: ZMR 250 / DYS SE2205 / Littlebee 20A ESCs / Drone Lab 1500 4S / Naze32 Rev5 / BF 2.7.1
FPV: Runcam Skyplus / Aomway 200mw VTX / Fatshark DomV1
>>>>>>>>>>Check Out My Build<<<<<<<<<<
Reply
#3
(29-Aug-2016, 11:00 PM)HamsterFPV Wrote: I really need to get a Taranis. Do you get voice alerts about everything on the screen as well?

Pretty much but that's actually unrelated to the script since the Taranis allows to configure the alerts using logical switches.

I got mine a couple weeks ago and so far I'm happy. With telemetry and voice alerts I don't even need an OSD which simplified my build a lot.
Reply
Login to remove this ad | Register Here
#4
That's REALLY very cool!!  Well done! Cool
"Damn the torpedoes!!!  Full speed ahead!!!"
Reply
#5
Hello Tozes, I am new to Lua scripts, but yours seems to be the one that is as close as possible to something I would want.
I just registered this forum so I could contact you.

Do you mind sharing it? Then I'll do my research on how to get it working.

Thanks!

Congrats on the design.
Reply
#6
(29-Oct-2016, 02:12 AM)gcacciola Wrote: Hello Tozes, I am new to Lua scripts, but yours seems to be the one that is as close as possible to something I would want.
I just registered this forum so I could contact you.

Do you mind sharing it? Then I'll do my research on how to get it working.

Thanks!

Congrats on the design.

Hey! Welcome to the forum, hope you stick around, there's a lot of great people here Smile

I'm away this weekend and got only my phone but I'll upload it tomorrow when I get back home.
Reply
Login to remove this ad | Register Here
#7
(29-Oct-2016, 02:12 AM)gcacciola Wrote: Hello Tozes, I am new to Lua scripts, but yours seems to be the one that is as close as possible to something I would want.
I just registered this forum so I could contact you.

Do you mind sharing it? Then I'll do my research on how to get it working.

Thanks!

Congrats on the design.

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
Reply
#8
Thank you very much! I have some homework to do, but later this week Ill try to figure it out!
I'll let you know what happens!

Thank you again!
Reply
#9
(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

Yea yeah, I need some help! LoL. Sorry to bother you!

I managed to get it working, of course my switches were different than yours, but nothing that a few tweaks to the code won't fix... I am getting into that. My problems right now are: Cell calculations, something is wrong, It is displaying 3S even if I am on 4s. I examined the code and it says:

local batt = getValue(DS_VFAS)
  local cell = getValue(DS_CELL)
  local cell_count = math.floor(batt/cell)

I do the math by myself, and right now VFAS = 15.78 and CELL ( A4 ) = 4.00

So cell count = math.floor(3.945) But it rounds down to 3S instead of 4S. I am no programmer, just curious.

Also I don know why, but Bellow RSSI- There is Cell- but there are so many decimals that it goes all the way through timer two. Lol

Do you have any tips for me?

Thanks!
Reply
Login to remove this ad | Register Here
#10
Hi!

Looks like some of your telemetry values are off. If A4 is 4.00 then VFAS should be 16 and not 15.78 or the other way around, depending on which one is more accurate.
Try plugging a fully charged battery and check the values. You should see approx. 16.8 for VFAS and 4.2 on A4. That should tell us which one is of and we can go from there.

And btw, which receiver model are you using? Could be also that the sensor tags are not the same as the XSR which I use so A4 could be something else.

Is the RSSI- value correct? You can easily test this by leaving the quad in one place in the house and moving with the Taranis to another room while watching the RSSI, RSSI- should match the lowest value ever recorded for RSSI. If everything is correct, perhaps this simple fix will be enough:

Replace line 176 with
local cell_min = round(getValue(DS_CELL_MIN), 0)

Let me know pls
Reply
#11
(01-Nov-2016, 07:58 AM)tozes Wrote: Hi!

Looks like some of your telemetry values are off. If A4 is 4.00 then VFAS should be 16 and not 15.78 or the other way around, depending on which one is more accurate.
Try plugging a fully charged battery and check the values. You should see approx. 16.8 for VFAS and 4.2 on A4. That should tell us which one is of and we can go from there.

And btw, which receiver model are you using? Could be also that the sensor tags are not the same as the XSR which I use so A4 could be something else.

Is the RSSI- value correct? You can easily test this by leaving the quad in one place in the house and moving with the Taranis to another room while watching the RSSI, RSSI- should match the lowest value ever recorded for RSSI. If everything is correct, perhaps this simple fix will be enough:

Replace line 176 with
local cell_min = round(getValue(DS_CELL_MIN), 0)

Let me know pls

Hey! Thank you again for the very quick answer! I think I know the origin of the Cell count problem. I adjusted the offset of the vfas to show the exact same voltage as my "external voltage meter" that I measured at the VCC on the FC, but it seems that the "Cell" doesn't take that into account! I may have to apply the same offset to the Cell value.
I am using a X4R, A4 is the same. I do think RSSI- is correct, but the cell- that has around 12 digits after the comma LOL, but I think your suggestion might do the trick! I'll let you know. Tonight Ill be busy, but tomorrow I'll try it!

Do you know about http://rcdiy.ca ? They want to be a repository of lua scripts, why don't you send yours there? I really enjoyed yours.
Most of the scripts are for Long Range GPS enabled quads, but yours are exactly what we could use for FPV racing. 

Thanks
Reply
#12
(01-Nov-2016, 07:58 AM)tozes Wrote: Hi!

Looks like some of your telemetry values are off. If A4 is 4.00 then VFAS should be 16 and not 15.78 or the other way around, depending on which one is more accurate.
Try plugging a fully charged battery and check the values. You should see approx. 16.8 for VFAS and 4.2 on A4. That should tell us which one is of and we can go from there.

And btw, which receiver model are you using? Could be also that the sensor tags are not the same as the XSR which I use so A4 could be something else.

Is the RSSI- value correct? You can easily test this by leaving the quad in one place in the house and moving with the Taranis to another room while watching the RSSI, RSSI- should match the lowest value ever recorded for RSSI. If everything is correct, perhaps this simple fix will be enough:

Replace line 176 with
local cell_min = round(getValue(DS_CELL_MIN), 0)

Let me know pls
Can you imagine :

http://rcdiy.ca/lap-timer/

Having the TIME on your script showing a chrono and every time we flicked SH Mrs Taranis would call it out loud and start a new lap? But keep showing last full lap on screen? That would rock. Not pushing you to do anything, just imagining the possibilities. LOL.
Reply
Login to remove this ad | Register Here
#13
(01-Nov-2016, 04:56 PM)gcacciola Wrote: Hey! Thank you again for the very quick answer! I think I know the origin of the Cell count problem. I adjusted the offset of the vfas to show the exact same voltage as my "external voltage meter" that I measured at the VCC on the FC, but it seems that the "Cell" doesn't take that into account! I may have to apply the same offset to the Cell value.
I am using a X4R, A4 is the same. I do think RSSI- is correct, but the cell- that has around 12 digits after the comma LOL, but I think your suggestion might do the trick! I'll let you know. Tonight Ill be busy, but tomorrow I'll try it!

Do you know about http://rcdiy.ca ? They want to be a repository of lua scripts, why don't you send yours there? I really enjoyed yours.
Most of the scripts are for Long Range GPS enabled quads, but yours are exactly what we could use for FPV racing. 

Thanks

Haha, I wrote that early in the morning before going to work so I was clearly still sleeping Big Grin I even suggested the fix for the cell- decimals, even though I was thinking about RSSI-

Just one small adjustment to the fix so you get 2 decimal places:
local cell_min = round(getValue(DS_CELL_MIN), 2)
 

Never heard of that website but will check it out in the evening.
I'm glad you like it, the motivation to create this script was exactly what you described, there was a lot of stuff around but not really fitting racing quads. 

(01-Nov-2016, 05:02 PM)gcacciola Wrote: Can you imagine :

http://rcdiy.ca/lap-timer/

Having the TIME on your script showing a chrono and every time we flicked SH Mrs Taranis would call it out loud and start a new lap? But keep showing last full lap on screen? That would rock. Not pushing you to do anything, just imagining the possibilities. LOL.

I don't have the equipment to test this sort of thing but the code is on github so anyone can pick it up and improve Smile
Reply
#14
(02-Nov-2016, 01:37 PM)tozes Wrote: Haha, I wrote that early in the morning before going to work so I was clearly still sleeping Big Grin I even suggested the fix for the cell- decimals, even though I was thinking about RSSI-

Just one small adjustment to the fix so you get 2 decimal places:
local cell_min = round(getValue(DS_CELL_MIN), 2)
 

Never heard of that website but will check it out in the evening.
I'm glad you like it, the motivation to create this script was exactly what you described, there was a lot of stuff around but not really fitting racing quads. 


I don't have the equipment to test this sort of thing but the code is on github so anyone can pick it up and improve Smile

Here is what I archived until now!



Will work on the chromo thing! I'll let you know what happens.
[-] The following 1 user Likes gcacciola's post:
  • Oscar
Reply
#15
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.
Reply
Login to remove this ad | Register Here


Possibly Related Threads...
Thread Author Replies Views Last Post
  Why Telemetry is important on your TX? DragonFly 1 54 25-Jun-2017, 08:47 PM
Last Post: Oscar
  Help Taranis timer CaCondor 7 172 07-Jun-2017, 09:26 AM
Last Post: Carl.Vegas
  How to get Taranis subtrim beyond 100? JPFlorida 1 85 01-Jun-2017, 11:18 AM
Last Post: beastmode92
  Help Better Batteries for Taranis QX7? OverDischarged 1 104 01-Jun-2017, 11:08 AM
Last Post: DragonFly
  X4R-SB bound but not communicating with taranis Simply_6 8 228 27-May-2017, 06:32 AM
Last Post: voodoo614