Page 1 of 1

Data logging not working from python script

Posted: Mon Feb 17, 2020 4:08 am
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

Re: Data logging not working from python script

Posted: Mon Feb 17, 2020 11:00 am
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.