How do I interpret the flight log downloaded from the drone after the flight?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 5 de Sept. de 2017
Respondida: MathWorks Support Team
el 28 de Sept. de 2017
How do I interpret the flight log downloaded from the drone after the flight?
Respuesta aceptada
MathWorks Support Team
el 5 de Dic. de 2017
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre MATLAB Support Package for Parrot Drones en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!