A question about the "Hello World" for Crazyflie
Posted: Mon Aug 19, 2013 5:35 am
Hello Everyone! I will move onto the heart of the problem as fast as possible. Now background introduction. I am a Mechanical Engineer B.Sc and studiying for M.S Degree in Control Engineering at Tokyo Institute of Technology university. RIght now i am having an internship at another Research Institute, where i am given 3 of 10 DOF crazyflie copters. My task is first to autonomously control (hover etc) one copter then have 3 copters work in sync. So far what i have done
1) I have succesfuly installed the client provided by the Bitcraze.
2) I run cfclient without problems and can connect to the Crazyflie copter
3) I can fly the copter itself by using the controller
So far nothing extraordianry. The thing is source code is in Python and I HAVE NEVER worked with python before. So i am learning right now python
never would have guessed a whitespace could be this dangerous ;p anyways i have picked up quite a bit of python in a couple of days.
REAL QUESTION STARTS FROM HERE (for people who doesnt want to read the story)
For starters i wanted to compile the source code given at the end of the page http://wiki.bitcraze.se/projects:crazyf ... tils:pylib
i compiled it however it doesnt work here is the output when i run in terminal python first.py
DEBUG:cflib.crazyflie.toc:Added element [25]
DEBUG:cflib.crazyflie.toc:[2]: More variables, requesting index 26
DEBUG:cflib.crazyflie.toc:Requesting index 26 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 [26]
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 0x9cd16ec>>]
DEBUG:cflib.crazyflie.toc:[2]: Done!
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/10/250K]
WARNING:cflib.crazyflie.toc:Unable to find variable [acc.x]
WARNING:cflib.crazyflie.log:Log: acc.x not in TOC, this block cannot be used!
acc.x/y/z not found in log TOC
in long story short how to write a Hello World for crazyfle
1) I have succesfuly installed the client provided by the Bitcraze.
2) I run cfclient without problems and can connect to the Crazyflie copter
3) I can fly the copter itself by using the controller

So far nothing extraordianry. The thing is source code is in Python and I HAVE NEVER worked with python before. So i am learning right now python

REAL QUESTION STARTS FROM HERE (for people who doesnt want to read the story)
For starters i wanted to compile the source code given at the end of the page http://wiki.bitcraze.se/projects:crazyf ... tils:pylib
i compiled it however it doesnt work here is the output when i run in terminal python first.py
DEBUG:cflib.crazyflie.toc:Added element [25]
DEBUG:cflib.crazyflie.toc:[2]: More variables, requesting index 26
DEBUG:cflib.crazyflie.toc:Requesting index 26 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 [26]
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 0x9cd16ec>>]
DEBUG:cflib.crazyflie.toc:[2]: Done!
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/10/250K]
WARNING:cflib.crazyflie.toc:Unable to find variable [acc.x]
WARNING:cflib.crazyflie.log:Log: acc.x not in TOC, this block cannot be used!
acc.x/y/z not found in log TOC
in long story short how to write a Hello World for crazyfle