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 @gclue_akira: 柏の葉で走行させてるjetracerの中身 #instantNeRF #jetracer https://t.co/giVvuE4hP7
Jul 4
DIY Robocars via Twitter
Cool web-based self-driving simulator. Click save when the AI does the right thing https://github.com/pncsoares/self-driving-car
Jul 4
DIY Robocars via Twitter
RT @donkey_car: Human-scale Donkey Car! Hope this makes it to a @diyrobocars race https://www.youtube.com/watch?v=ZMaf031U8jg
Jun 25
DIY Robocars via Twitter
Jun 25
DIY Robocars via Twitter
Jun 16
DIY Robocars via Twitter
RT @GrantEMoe: I won my first @diyrobocars @donkey_car virtual race! Many thanks to @chr1sa @EllerbachMaxime @tawnkramer and everyone who m…
Jun 13
DIY Robocars via Twitter
RT @gclue_akira: JetRacerで自動走行したコースを、InstantNeRFで再構築。データセットは別々に収集 #jetracer #instantNeRT https://t.co/T8zjg3MFyO
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: SPC 3.0 Now the motor also works. This car is doable. I just need to design a deck to mount my compute and sensors. http…
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: My new car SPC 3.0. https://t.co/CKtkZOxeNQ
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: High speed at @diyrobocars thanks @EdwardM26321707 for sharing the video https://t.co/o4317Y2U1S
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: Today at @RAMS_RC_Club for @diyrobocars. Used @emlid RTK GPS and @adafruit @BoschGlobal IMU. Lap time 28s https://t.co/R…
May 28
DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
More…