Problem logging data
Posted: Mon Feb 03, 2014 10:17 am
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...
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...