Mission Planner tlog to Matlab - unable to open structures in Matlab

1,564 views
Skip to first unread message

Doug

unread,
Oct 20, 2013, 2:04:13 PM10/20/13
to drones-...@googlegroups.com
I have never tried the tlog to Matlab functionality in Mission Planner before and am not having initial success.  Perhaps I am doing something wrong?  From the Mission Planner telemetry logs window I create a Matlab file.  I then open the file with Matlab (using 2013a) and see data structures for the various mavlink message types loaded in the workspace.  However, when trying to open any of these data structures by double-clicking them in the workspace I just get:
  openvar('Vcc mavlink_hwstatus_t', Vcc mavlink_hwstatus_t);
                                       |
Error: Unexpected MATLAB expression.

I have tried a variety of syntax with openvar, but nothing has worked so far.

Is anyone familiar with this functionality?  Can you explain how to use it?

Thx,
-Doug

Doug

unread,
Oct 20, 2013, 2:40:37 PM10/20/13
to drones-...@googlegroups.com
Attached is my Matlab file...
-Doug

2013-10-19 13-11-28.tlog.mat

Brandon Jones

unread,
Oct 20, 2013, 5:35:22 PM10/20/13
to drones-...@googlegroups.com
Hi Doug,

Looks like the variable names have spaces in them, which matlab doesn't allow.  The .mat files I generated have the same issue (2011b).  Here is a script that imports the mission planner exported CSV files into matlab. It isn't optimal at all, but did the job last I used it earlier this year.



On Sun, Oct 20, 2013 at 2:40 PM, Doug <dewe...@gmail.com> wrote:
Attached is my Matlab file...
-Doug

--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Michael Oborne

unread,
Oct 20, 2013, 6:19:44 PM10/20/13
to drones-...@googlegroups.com
Doug,
 
i will fix the space issue in the next version.
 
Michael
 
Sent: Monday, October 21, 2013 5:35 AM
Subject: Re: [drones-discuss] Re: Mission Planner tlog to Matlab - unable to open structures in Matlab
 
Hi Doug,
 
Looks like the variable names have spaces in them, which matlab doesn't allow.  The .mat files I generated have the same issue (2011b).  Here is a script that imports the mission planner exported CSV files into matlab. It isn't optimal at all, but did the job last I used it earlier this year.
 
On Sun, Oct 20, 2013 at 2:40 PM, Doug <dewe...@gmail.com> wrote:
Attached is my Matlab file...
-Doug
 
--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailto:drones-discuss%2Bunsu...@googlegroups.com.

Doug

unread,
Oct 21, 2013, 10:32:05 AM10/21/13
to drones-...@googlegroups.com
Brandon,

Looks like you are right and it really pisses Matlab off - lol.  Matlab won't even let you rename the variables to not have spaces in them...

Michael,

I tried to update to the beta, but the update failed.  I sent you an email with some details.

-Doug

Doug

unread,
Oct 21, 2013, 6:25:03 PM10/21/13
to drones-...@googlegroups.com
Michael,

Not sure why I had update troubles, but once I got the update to beta to work the telem log to Matlab file conversion looks great - Thanks!!!

- Doug


On Sunday, October 20, 2013 12:04:13 PM UTC-6, Doug wrote:

GANESH B K

unread,
Apr 28, 2014, 3:27:39 AM4/28/14
to drones-...@googlegroups.com
Hi micheal i had a question can we control the guided mode with the help of matlab after flashing the APM with Mission planner??

M Pienaar

unread,
Mar 20, 2015, 9:48:49 AM3/20/15
to drones-...@googlegroups.com
Hi

I exported the data to Matlab. I want the timestamp data but the format of the time in the Matlab variables are funny.
For example in the time_usec_mavlink_gps_raw_int_tvariable the time value is 7.360396782366204e+05 for the first entry. I am not sure how this time was calculated?
It doesn't match the time since 1 Jan 1900

How can I convert this time value back to actual time? Or what format do they use?

Your help would be greatly apreciated.

Kind Regards
M
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discuss+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages