Page 1 of 1

Communication between the crazyflie and the dangle

Posted: Wed Oct 07, 2015 7:04 am
by Peter
Hello, i worked those days of c++ crazyflie client. i compile all the sources under windows. and i generate the programme, but i have a problem with the communication between the radio dangle and the crazyflie.
When i start the program, the terminal show me just the version of the dangle i can't read the value of sensor. the led in the radio dangle is red. i think the radio dangle must be green.

what is the function that enable communication between the radio dangle and the drone.

i used the sampel exemple of the source code of https://github.com/fairlight1337/libcflie
please help.

Re: Communication between the crazyflie and the dangle

Posted: Wed Oct 07, 2015 8:10 am
by Slaxx
I also had some issues using different channels and speed than what is defined in 'CrazyRadio.cpp'
try finding these two lines
this->setDataRate("2M");
this->setChannel(2);

change them to what you need and also select the same
in CCrazyRadio *crRadio = new CCrazyRadio("radio://0/10/250K");

that worked for me

Re: Communication between the crazyflie and the dangle

Posted: Wed Oct 07, 2015 9:03 am
by Peter
..

Re: Communication between the crazyflie and the dangle

Posted: Wed Oct 07, 2015 10:29 am
by Peter
I changed the value from CCrazyRadio *crRadio = new CCrazyRadio("radio://0/10/250K"); to CCrazyRadio *crRadio = new CCrazyRadio("radio://2/10/2M"); and i did this->setDataRate("2M");this->setChannel(2);
But no communication the led of the dangle still red, can you help me please.

Re: Communication between the crazyflie and the dangle

Posted: Wed Oct 07, 2015 2:12 pm
by Slaxx
You should change it to CCrazyRadio("radio://0/10/2M"). But else I don't know where a problem might be.