Please help me to develop Crazyflie

Firmware/software/electronics/mechanics
Post Reply
zest
Beginner
Posts: 1
Joined: Wed Nov 20, 2013 1:31 pm

Please help me to develop Crazyflie

Post 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.
Last edited by zest on Wed Nov 20, 2013 1:48 pm, edited 1 time in total.
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Please help me to develop Crazyflie

Post by marcus »

Hi,

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