Discrepancy Between .csv and .mat file data

Hello all,

I am working on a project where I am doing a lot of data post-processing in MATLAB. I used the Create a MATLAB File in Mission Planner to convert my tlogs to .mat. After analyzing the data and realizing things were messed up I converted the same tlog to .csv. Upon looking at the same data and performing the same analysis the results were a lot better. I dug deeper and found that the .mat file has bad raw data points whereas the .csv file has the "correct" (as far as I know) raw data.

Also, plotting data from the .csv file matches graphs created in Mission Planner under the Telemetry Logs tab whereas the MATLAB plots do not match.

Is there any reason why this could be? Are the .csv files and .mat files created differently from Mission Planner? On my end I am just looking at the raw data in both file types.

Thank you,

Mark

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

Join diydrones

Email me when people reply –

Replies

  • how do you convert a tlog file yo a csv format?

    • In Mission Planner, under Flight Data in the box under the HUD click on the Telemetry Logs tab. Click Tlog > Kml or Graph, in the popup window there should be a button to select Convert to CSV.

      • Thank you.

        If I want the GPS time not elapsed time how would I extract this data?

  • Developer

    can you give me an example fieldname etc, so I can confirm the issue?

    • Hi Michael,

      I am looking at the Analog Airspeed set-up on an APM2.6 running Arduplane and transmitting with an XBEE wireless setup.

      Thank you for looking into this.

This reply was deleted.

Activity

DIY Drones via Twitter
RT @chr1sa: After more than a year of only virtual races, @DIYRobocars returns to the newly renovated @circuitlaunch on May 22 for the resu…
Apr 11
DIY Drones via Twitter
RT @DAVGtech: By far best race yet! Congratulations to the winner @Heavy02011 🥇🏆🍾👏👏👏 @diyrobocars @donkey_car @NVIDIAEmbedded https://t.co/…
Mar 20
DIY Drones via Twitter
RT @mrpollo: 11 years ago, the pxIMU was announced to the world on @DIYDrones, and it changed the life of many (mine included). The followi…
Mar 18
DIY Drones via Twitter
RT @ishcahealth: This is awesome! ☘️ @DroneDJ @DIYDrones @WorkerDrones @DroneMedia_UK @dublinaviation https://twitter.com/media_ireland/status/1372077878536462336
Mar 18
DIY Drones via Twitter
Using ArduRover with an RTK GPS https://ift.tt/2N9I3RO
Jan 18
DIY Drones via Twitter
Jan 18
DIY Drones via Twitter
Jan 14
DIY Drones via Twitter
An improved version of the Intel OpenBot https://ift.tt/2KkHT8Q
Dec 14, 2020
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16, 2020
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10, 2020
DIY Drones via Twitter
Getting started with Robocars https://ift.tt/2HWsudU
Nov 1, 2020
DIY Drones via Twitter
RT @chr1sa: The US government just approved 5 US-made drones for purchase, all based on the @Dronecode @PX4Autopilot standard. Great news f…
Aug 20, 2020
DIY Drones via Twitter
RT @MarvelmindMaxim: Extreme precision for 60 swarming robots. #marvelmind #autonomousrobotics #robotics #swarmrobotics #rtls #ips #indoor…
Aug 3, 2020
DIY Drones via Twitter
RT @MarvelmindMaxim: Precise (±2cm) tracking for racing boats and autonomous boats. Works outdoor and indoor. #autonomous #AutonomousVehic…
Aug 3, 2020
DIY Drones via Twitter
RT @MarvelmindMaxim: Helping PixHawk folks to fly autonomous quadcopters using PX4 and ArduPilot. https://marvelmind.com/drones/ Equally suitab…
Aug 3, 2020
DIY Drones via Twitter
RT @davsca1: Here is the video of the performance. This paper was a huge group effort and more than one year of work, where we combined and…
Jul 16, 2020
More…