Posts: 195 Threads: 8 Likes Received: 86 in 54 posts Likes Given: 79 Joined: Aug 2016 Reputation: 6 29-Aug-2016, 10:54 PM (This post was last modified: 03-Nov-2016, 03:14 PM by tozes.) 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: Posts: 391 Threads: 23 Likes Received: 50 in 41 posts Likes Given: 56 Joined: Feb 2016 Reputation: 8 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<<<<<<<<<< • Posts: 195 Threads: 8 Likes Received: 86 in 54 posts Likes Given: 79 Joined: Aug 2016 Reputation: 6 (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. • Posts: 1,290 Threads: 67 Likes Received: 711 in 472 posts Likes Given: 1,216 Joined: Mar 2016 Reputation: 23 That's REALLY very cool!! Well done! "Damn the torpedoes!!! Full speed ahead!!!" • Posts: 7 Threads: 0 Likes Received: 1 in 1 posts Likes Given: 1 Joined: Oct 2016 Reputation: 0 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. • Posts: 195 Threads: 8 Likes Received: 86 in 54 posts Likes Given: 79 Joined: Aug 2016 Reputation: 6 29-Oct-2016, 04:08 PM (This post was last modified: 29-Oct-2016, 04:44 PM by tozes.) (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 I'm away this weekend and got only my phone but I'll upload it tomorrow when I get back home. • Posts: 195 Threads: 8 Likes Received: 86 in 54 posts Likes Given: 79 Joined: Aug 2016 Reputation: 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, the code and bmp files are now on github: https://github.com/tozes/taranis_telemetry Let me know if you need some help. Enjoy • Posts: 7 Threads: 0 Likes Received: 1 in 1 posts Likes Given: 1 Joined: Oct 2016 Reputation: 0 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! • Posts: 7 Threads: 0 Likes Received: 1 in 1 posts Likes Given: 1 Joined: Oct 2016 Reputation: 0 (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 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! • Posts: 195 Threads: 8 Likes Received: 86 in 54 posts Likes Given: 79 Joined: Aug 2016 Reputation: 6 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 • Posts: 7 Threads: 0 Likes Received: 1 in 1 posts Likes Given: 1 Joined: Oct 2016 Reputation: 0 (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 • Posts: 7 Threads: 0 Likes Received: 1 in 1 posts Likes Given: 1 Joined: Oct 2016 Reputation: 0 (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. • Posts: 195 Threads: 8 Likes Received: 86 in 54 posts Likes Given: 79 Joined: Aug 2016 Reputation: 6 (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 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 • Posts: 7 Threads: 0 Likes Received: 1 in 1 posts Likes Given: 1 Joined: Oct 2016 Reputation: 0 (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 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 Here is what I archived until now! Will work on the chromo thing! I'll let you know what happens. Posts: 195 Threads: 8 Likes Received: 86 in 54 posts Likes Given: 79 Joined: Aug 2016 Reputation: 6 03-Nov-2016, 03:08 PM (This post was last modified: 03-Nov-2016, 03:16 PM by tozes.) Looking good 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. • |