How can I plot the MAT-file generated by Parrot minidrone?

3 ビュー (過去 30 日間)
Jarrid Wittocx
Jarrid Wittocx 2018 年 4 月 15 日
コメント済み: fei chang 2021 年 9 月 10 日
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
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
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.

カテゴリ

Help Center および File ExchangeMATLAB Support Package for Parrot Drones についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by