python client keyboard control
Posted: Fri Nov 03, 2017 1:41 pm
(python client keyboard control)
hello i would like to control my drone via python...
so bassically take the first script from the pyhton lib using flow
https://github.com/bitcraze/crazyflie-l ... nceSync.py
so basscially i would like to use instead of having to open the cfclient and conenct with a ps2 controller i would like to control the crazy flie via terminal and pyhton with this script i tried to make..first time on python.so already learnt allot in just writting this even tho it doesnt function.
https://gist.github.com/anonymous/77429 ... a5fccfda06
so when i run the code i use python3 and it runs but does not work..my aim is for it to run like so..
start and move to hover point .4 from here on i can then controll thrust pitch and such with keyboard mapped keys?
can anyone help why this is not working?is it possible?
is there a python script that uses ps2 that i could change?
anyway thats all just started will continue..
p.s so far code runs and all left right work but if i add crazyflie code runs connects but as soon as i touche a key it closes the python3 window.
thankks
hello i would like to control my drone via python...
so bassically take the first script from the pyhton lib using flow
https://github.com/bitcraze/crazyflie-l ... nceSync.py
so basscially i would like to use instead of having to open the cfclient and conenct with a ps2 controller i would like to control the crazy flie via terminal and pyhton with this script i tried to make..first time on python.so already learnt allot in just writting this even tho it doesnt function.
https://gist.github.com/anonymous/77429 ... a5fccfda06
so when i run the code i use python3 and it runs but does not work..my aim is for it to run like so..
start and move to hover point .4 from here on i can then controll thrust pitch and such with keyboard mapped keys?
can anyone help why this is not working?is it possible?
is there a python script that uses ps2 that i could change?
anyway thats all just started will continue..
p.s so far code runs and all left right work but if i add crazyflie code runs connects but as soon as i touche a key it closes the python3 window.
thankks