Data logging not working from python script

Discussions related to positioning systems where the position is calculated outside the Crazyflie and sent to the device using radio, including MoCap systems
Post Reply
mouhyemen
Beginner
Posts: 13
Joined: Sun Feb 02, 2020 5:24 pm

Data logging not working from python script

Post by mouhyemen »

I am trying to read in position data of cf using the asynchronous logger script in python.

I commented out line #151 and uncommented #150 of autonomousSequence.py script:
https://github.com/bitcraze/crazyflie-l ... ce.py#L151

I get the following output:
python_log_output.png
It says "Error no LogEntry to handle id=25"

If I comment out reset_estimator in the script, then I get "No LogEntry to assign block to !!!"

The console output is the following:
cf_console.png
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Data logging not working from python script

Post by kristoffer »

Hi!

The spurious "Error no LogEntry to handle..." messages are harmless. You may get them when re-connecting to a Crazyflie where some logging was set up in a previous connection. Due to the design of the protocol, the Crazyflie does not really know if a connection is new or not, and will continue to send the log data that was set up in the previous connection. The problem is that the python lib does not know about this log configuration and hence displays the warning.

Since you commented out line #151 the connection will close down as soon as the estimator has been reset. Add a sleep instead, that should hopefully give you some log data.
Post Reply