Info about logging code

Firmware/software/electronics/mechanics
Post Reply
antoniodecri
Beginner
Posts: 2
Joined: Tue Oct 15, 2019 9:33 am

Info about logging code

Post 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.
Attachments
logdata.txt
Sorry, i attached the txt because the .py format is not accepted
(13.24 KiB) Downloaded 51 times

kimberly
Bitcraze
Posts: 485
Joined: Fri Jul 06, 2018 11:13 am

Re: Info about logging code

Post 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) ?

Post Reply