TLog to Friendlier Format

I am trying to get graph how my quad uses power as it flies for a research project. I am running the APM 2.5 on a DJI F450 with the 3DR power module hooked up.

 

I found that the voltage/current information is stored in the .tlog format. I used the Mission Planner utility to take the .tlog into .txt, but I can't figure out how to get Excel to look at it to create a graph with voltage vs time.

 

So, I decided to write a C++ program to take the text file and turn it into another text file that is more excel friendly. So far, the program is slow and I have only been searching for one value.

 

Any ideas?

 

 

-Jake

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Doesn't the planner do graphs already anyway?

  • I have been plotting altitude and voltage the past week using excel. It takes me 20 to 25 minutes to process tlog exported as csv. If you have a faster way, I would love to know your solution and perhaps share the code (especially if its a macro within excel to cut on processing time). Anyways, open csv in excel, format resulting data based on column Q (that's where voltage_battery is located). I then remove all rows that do not have the voltage_battery information. Removed also all columns except those with the time and columns Q & R. Re-sort the cleaned data using time column. The result is data waiting for your plotting methodology.

    Best.

  • Does anyone know what the current in the .tlog is in? mA?

     

    -Jake

  • Use python with matplotlib :)  Should not be more than 30 lines of code...

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @chr1sa: You can see this in person in two weeks for our next live event with real cars. It's great fun for adults and kids alike, and…
yesterday
DIY Robocars via Twitter
RT @chr1sa: The final race (1:24) at yesterday's @DIYRobcars virtual event was our best. It's only two minutes long but it has everything,…
yesterday
DIY Robocars via Twitter
RT @chr1sa: The monthly @diyrobocars virtual race is starting now! https://www.twitch.tv/roboticists2
Saturday
Mike Whitney liked Mike Whitney's profile
Jul 19
DIY Robocars via Twitter
Jul 2
DIY Robocars via Twitter
Jun 26
Abdulatif Tlaib liked Ryan's profile
Jun 24
DIY Robocars via Twitter
RT @SmallpixelCar: First time at @wsraceways. After tuning @HokuyoUsa lidar signal and camera sensor on @NVIDIAEmbedded, my car was able to…
Jun 20
DIY Robocars via Twitter
RT @breadcentric: The handy bit about racing with self-driving cars is that one can type while the car is racing. Report from #AWSDeepRacer…
Jun 18
DIY Robocars via Twitter
RT @chr1sa: Our Bay Area @DIYRobocars meetup is now at 2,700 members. Next in-person events (in Oakland) are training day on July 17 and…
Jun 18
DIY Robocars via Twitter
Videos from the ICRA autonomous racing workshop are now available: https://linklab-uva.github.io/icra-autonomous-racing/
Jun 10
DIY Robocars via Twitter
RT @SmallpixelCar: Prepared race track for Warm Spring Raceways @wsraceways and looking forward to test my new car at RAMS RC @ramsaicar fa…
Jun 6
DIY Robocars via Twitter
RT @f1tenth: Trying out some nasty blocking maneuvers 🏎️🤖 #f1tenth #autonomousracing https://t.co/nMTstsaogM
Jun 5
DIY Robocars via Twitter
May 27
DIY Robocars via Twitter
RT @araffin2: I will talk this Saturday from 18:00 to 19:00 Paris time for the @diyrobocars community about learning to race in hours using…
May 27
DIY Robocars via Twitter
RT @a1k0n: Luckily the infeasible hairpin problem was easily reproducible in simulation and I could test the fix before bringing the car ba…
May 26
More…