Page 1 of 1

Info about logging code

Posted: Wed Nov 06, 2019 9:49 am
by antoniodecri
Hello everyone, i wrote the code that i am attaching here which is based on the code basiclog.py
I want the drone to log data while it does simple trajectories, moreover i want to log quaternions, positions and so on.
I removed the part of the timer where the link has been closed after a certain period because i want to stop the logging and disconnect right after the drone finishes its trajectories but the led M4 keeps blinking green. Any suggestion on how to solve this issue? Did I code wrong something in my script? Thank you.

Re: Info about logging code

Posted: Thu Dec 19, 2019 10:01 am
by kimberly
Hi!

The logging should automaticallly stop if the script comes to an end and the crazyflie should also disconnect. Could you try to remove all the le._lg1.stops, and ._disconnected? I'm not sure if you are allowed to use those functions in this way.

If that does not work, could you please provide us a minimal working example (without the crazyflie flying but just logging) ?