In mission planner I convert to a Matlab file, in there I use the ctime() command of three consecutive time stamps.
In Mission planner these have a difference of 100ms.
What I get in Matlab for the same three are: Tue May 29 18:02:49 1973, Wed May 30 21:48:51 1973 and Fri Jun 01 01:45:28 1973
Could you explain how to convert the TIMEUS into the correct time shown in Mission Planner?
If I look at the different matrices, for instance BAT has a column with TimeUS, but GPS also has it’s own column with TimeUS which is different to the BAT TimeUS.
If I want to plot two curves, how do I use the same time stamp?
Unfortunately I don’t see how it works.
If you check the attached picture you can see that the column in BAT is different than the column in GPS (both are the second columns and both from the same log file).
I would assume that I could use these to plot their values, but the time stamps are really different so I don’t know when one event happened relative to the other.
look at the combined times from the first two lines of your tables
Logging does not happen at the same time, even some values are logged more frequently than others,(in your case BAT logged twice as many times than GPS) but the uS value sets a common time reference. I think you can go with a 100mS granuality so divide by 100000.