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\.
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()
But, Program is Error! you look adove. plz.
Please tell me how to programming in Python! please.. T_T
Thank you for reading.