How do I interpret the flight log downloaded from the drone after the flight?

2 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
You can get the flight log by using the 'getFlightLog' API. Connect the Parrot Minidrone over Bluetooth to host computer. In MATLAB Command Window, run the following commands:
rs = codertarget.parrot.internal.parrotminidrone();
rs.getFlightLog();
A text file titled 'droneFlight.txt' will be downloaded to the current MATLAB directory.
From here, you can open the text file. Note that the sensor values, battery voltage and motor output values are printed in the log, which can be used to debug. An example file would look like this:
 
At the end of the log, you can see the if the flight successfully completed or if it stopped because of any error conditions. The following screenshots show some of the different conditions.
1) Successful flight completion:
 
2)  Flight aborted due to the command ‘stopDroneFlight’ issued from MATLAB Command prompt:
 
3) No optical flow for 50 cycles. Whenever this issue arises, please try to start the drone on a different surface:
 
4) The drone stopped running during the flight because its battery percentage dropped below 50%:
 
5) If the values returned by accelerometer are extreme, the flight is aborted as a preemptive measure:
 

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for Parrot Drones 的更多信息

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by