Hello,

I have an autonomous boat and it collects a lot of data. The data is stored in a .BIN file and when I open the .BIN file the files are not readable by humans. There is a program called ArduPilot Log Viewer that I can use to look at this data but thats time consuming and I dont want to run it everytime I run the boat. Im trying to plot various things like battery health, telemetry, speed etc. in ArduPilot Log Viewer I can open this file and export the things I want as a CSV, this is how I have been doing it up to this point. I dont know how many columns there are in this data, probably dozens of columns. To read the data im using the code below, but when I do this is put every data point in a single column, I dont know where the columns end. I only need 10 of the dozens of columns produced so most of the data is useless to me. The file size is 100-300mb each.

The code im using is:

fid = fopen(“00000002.BIN”);

data = fread(fid, ‘*int16’);

Im still new to Matlab so I can try to answer any questions that might help. What I want it to open this file and create a new variable for each column of data. Thanks again!



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *