crazyflie1 with kinect

Firmware/software/electronics/mechanics
Post Reply
wahyunds
Beginner
Posts: 3
Joined: Mon May 16, 2016 4:19 pm

crazyflie1 with kinect

Post by wahyunds »

hello im from a country in southeast Asia.
need some help here.
just for your information, the crazyflie here is expensive enough for me. :D

i recently working on kinect with crazyflie for autopilot and follow this instruction here https://wiki.bitcraze.io/misc:hacks:kinect
which still use python 2.
i've a problem crazyradio cant connect to crazyflie. when i opened cfkinect it said crazyradio probably unplugged.
then i overwrite the lib\cflib\drivers\crazyradio.py with same file in crazyflie-client-python version cfclient-2013.4.2.
then i execute the cfkinect.
crazyradio led's blinking n it show the video with fps, x,y poss. but it said too many package lost. still cant connect to crazyflie.
do you know what's going on?
really need help here for my project.

im using lubuntu 16.04
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: crazyflie1 with kinect

Post by arnaud »

Hi,

Can you connect your Crazyflie with the pc GUI client? One thing you could try is to change the channel and datarate. It could be that you have a wifi signal on the channel you are currently using. You can try to set 2Mbps datarate which should be more immune to wifi signals.

/Arnaud
wahyunds
Beginner
Posts: 3
Joined: Mon May 16, 2016 4:19 pm

Re: crazyflie1 with kinect

Post by wahyunds »

thx for the answer mr. Arnaud :D

i can connect the crazyflie with pc client with edit the crazyflie-clients-python/lib/cflib/drivers/crazyradio.py. i set pyusb to false.
try:
import usb.core
pyusb1 = False (true on original file)
except:
pyusb1 = False
i know this trick when i read a thread in this forum.
then i run pc client on dev-kinect, everything works well. i can control it using joystick. but on terminal there is a plenty of this warning.
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
and then i change the channel and radio freq. to 2mbps and execute cfkinect. still terminal shows
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
WARNING:cflib.crazyflie:Got link error callback [Too many packets lost] in state [1]
INFO:cflib.crazyflie:Callback->Connected failed to [radio://0/10/250K]: Too many packets lost
Connection failed on radio://0/10/250K: Too many packets lost
then it shows the video. but crazyflie wont fly. any suggestions? thx for any help.
Post Reply