Page 1 of 1

Please help me to develop Crazyflie

Posted: Wed Nov 20, 2013 1:42 pm
by zest
Hi,
i am beginner.

I was buying Crazyflie. Also learned to develop Python tries.
But Python is difficult. Is that because it is interpreter language.

'import' should not have. So, i moved to crazyflie-pc-client\cflib in c:\Python27\Lib\.


Image


And, Tell me Python programming method.
i saw "http://wiki.bitcraze.se/projects:crazyf ... tils:pylib".
so, i write crazyflie-pc-client sourse.

Code: Select all

import cflib
import cflib.crtp
cflib.crtp.init_drivers()
available = cflib.crtp.scan_interfaces()
for i in available:
    print "Interface with URI [%s] found and name/comment [%s]" % (i[0], i[1])

crazyflie = Crazyflie()

crazyflie.open_link("radio://0/10/250K")
roll    = 0.0
pitch   = 0.0
yawrate = 0
thrust  = 0
crazyflie.commander.send_setpoint(3, 5, 10, 20)

crazyflie.close_link()
And I execute python souse.

But, Program is Error! you look adove. plz.



Please tell me how to programming in Python! please.. T_T
Thank you for reading.

Re: Please help me to develop Crazyflie

Posted: Mon Nov 25, 2013 8:13 am
by marcus
Hi,

You will also need to install pyusb and libusb. Please see the install instructions on the wiki.