[SOLVED] Issue with logging example from wiki
Posted: Thu Oct 10, 2013 3:22 am
I'm trying to get logging to work using the accelerometer example posted on the wiki and am getting the following error:
I've flashed a new firmware with an updated TOC and am able to plot accelerometer values graphically in the client, but I can't seem to capture them in log form. I've dug a bit in to the python libraries, and it looks like there is in fact no dataReceived attribute on LogEntry defined in cflib/crazyflie/log.py. That being said, people seem to be able to get the example working.. The exact code I'm using is here: https://github.com/andykee/uclathesis/b ... _flight.py
Any help would be appreciated!
Code: Select all
File "test_flight.py", line 69, in connectSetupFinished
self.accel_log.dataReceived.add_callback(self.log_accel_data)
AttributeError: LogEntry instance has no attribute 'dataReceived'
Any help would be appreciated!