How can I plot the MAT-file generated by Parrot minidrone?
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
fei chang
2021 年 9 月 10 日
How do you get the flight data file? I still can't get it through the online tutorial configuration
回答 (1 件)
Victor Cheidde Chaim
2018 年 5 月 24 日
編集済み: Victor Cheidde Chaim
2018 年 5 月 24 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で MATLAB Support Package for Parrot Drones についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!