Problem logging data

Firmware/software/electronics/mechanics
Post Reply
koob88
Beginner
Posts: 1
Joined: Mon Feb 03, 2014 10:04 am

Problem logging data

Post 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...
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Problem logging data

Post 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
stshah3
Beginner
Posts: 8
Joined: Sat Jun 07, 2014 9:59 pm

Re: Problem logging data

Post 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.
Post Reply