test crazyflie-firmare dwm1000 fail

Firmware/software/electronics/mechanics
Post Reply
justinleeyang
Expert
Posts: 186
Joined: Mon Dec 28, 2015 5:07 am

test crazyflie-firmare dwm1000 fail

Post by justinleeyang »

hi,all:
I want to try crazyflie-firmare dwm1000 code, then I have forced the code compiled, add the follow config to tools/make/config.mk:

Code: Select all

CFLAGS += -DDECK_FORCE=bcDWM1000
DEBUG=1
from the crazyflie-client-python, I find the dwm1000 init successfully:
dwm1001test1.png
then I have already deploy the 6 Anchors, but i find crazyflie's dwm1000(tag) and anchors no get distance, because I know that when measure the distance, dwm1000 will control the TX/RX/SFD/RXOK toggle, all anchors's TX/SFD/RXOK have no toggle. so I want to know if not the crazyflie-firmware's issue, or other?
the follow picture is lps-ros, the tag have no move.
dwm1001test2.png
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: test crazyflie-firmare dwm1000 fail

Post by arnaud »

Hi justinleeyang,

The first thing is to verify that you are getting range measurement from the Crazyflie, you can do that by plotting the ranges in the Crazyflie client and/or by printing the ranges in ros using

Code: Select all

rosropic echo /ranging
If there is no ranging you will need to solve that first.

/Arnaud
justinleeyang
Expert
Posts: 186
Joined: Mon Dec 28, 2015 5:07 am

Re: test crazyflie-firmare dwm1000 fail

Post by justinleeyang »

hi,

Thanks! the newest crazyflie-firmware is OK?
I will try the command: rosropic echo /ranging
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: test crazyflie-firmare dwm1000 fail

Post by arnaud »

Yes the latest firmwares from git Master branch are working.
gwiily
Beginner
Posts: 20
Joined: Wed Dec 02, 2015 2:12 am

Re: test crazyflie-firmare dwm1000 fail

Post by gwiily »

I have a same problem with you,no matter anchor or dwm's deck ,there are no toggle.
the command should be

Code: Select all

rostopic echo /ranging
,but it show the

Code: Select all

ERROR: Unable to communicate with master!
I still can't find where the problem is.

thank u~
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: test crazyflie-firmare dwm1000 fail

Post by arnaud »

Have you launched the launchfiles? (the "roslaunch" commands documented on the wiki: https://wiki.bitcraze.io/doc:lps:index#ros).

This error look like the roscore server has not been started and it is started by roslaunch.
Post Reply