Page 1 of 1

Problem logging data

Posted: Mon Feb 03, 2014 10:17 am
by koob88
Hi everyone,

I recently bought a crazyflie and just had a lot of fun flying it. However I was trying to program it using the API in python but for some reasons it doesn't work for logging data.

I use the last firmware version, the virtual machine Bitcraze and the code available at this adress : https://bitbucket.org/eldraco2000/crazyflie-programs

Wenn I try to launch the programm test_log.py in the terminal from /lib I get the following result :

....
DEBUG:cflib.crazyflie:ExpectAnswer: Will expect answer on port [2]
DEBUG:cflib.crazyflie:ExpectAnswer: Got answer back on port [2], cancelling timer
DEBUG:cflib.crazyflie.toc:Added element [51]
DEBUG:cflib.crazyflie.toc:[2]: More variables, requesting index 52
DEBUG:cflib.crazyflie.toc:Requesting index 52 on port 2
DEBUG:cflib.crazyflie:ExpectAnswer: Will expect answer on port [2]
DEBUG:cflib.crazyflie:ExpectAnswer: Got answer back on port [2], cancelling timer
DEBUG:cflib.crazyflie.toc:Added element [52]
WARNING:cflib.crazyflie.toccache:Could not save cache, no writable directory
DEBUG:cflib.crazyflie:Removing callback on port [2] to [<bound method TocFetcher._new_packet_cb of <cflib.crazyflie.toc.TocFetcher instance at 0xb6fcb64c>>]
DEBUG:cflib.crazyflie.toc:[2]: Done!
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/10/250K]

And the nothing happens...

Am I missing something really obvious, or can anyone give me some advice ?

Thanks a lot...

Re: Problem logging data

Posted: Tue Feb 04, 2014 9:50 am
by marcus
Hi,

In the last release 2014.01 there's some examples that have been added that shows how to get the logging working. Have a look at those and update to the 2014.01 version of the API.

/Marcus

Re: Problem logging data

Posted: Mon Jul 07, 2014 2:10 am
by stshah3
I also tried test_log.py which I found on the internet (may or may not be the same one you have) and it didn't work for me either. There was an issue with connecting to crazyflie. I resolved the issue and now it works fine. If you still want to know how to log the data let me know and I'll upload my code. I was able to log the battery voltage, stabilizer, barometer, and accelererometer.