How can I plot the MAT-file generated by Parrot minidrone?
12 views (last 30 days)
Show older comments
After flight, the drone generates a MAT-file with many sensor values. How can I plot these like you see in the video at 28:30?
Video: https://nl.mathworks.com/videos/programming-drones-with-simulink-1513024653640.html
1 Comment
fei chang
on 10 Sep 2021
How do you get the flight data file? I still can't get it through the online tutorial configuration
Answers (1)
Victor Cheidde Chaim
on 24 May 2018
Edited: Victor Cheidde Chaim
on 24 May 2018
Hi, Jarrid
Once you have retrieved the .mat file from the PARROT Minidrone, with the default name of ¨RSdata.mat¨, you load it into the MATLAB workspace. After that, you will have access to struct variables named ¨rt_xxx¨, where xxx stands for origin of the stored data. In the logging subsystem (attached figure), you can see the variable name on the ¨To Workspace¨ blocks as reference to which ¨rt_xxx¨ you want to access, as well as the position of specific variable you want to plot regarding the struct.
As an example, if you want to plot the position state X over time just type the following in the command window:
plot(rt_estim.time,rt_estim.signals.values(:,1))
I hope it helps.
0 Comments
See Also
Categories
Find more on MATLAB Support Package for Parrot Drones in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!