[SOLVED]Many crazyfies and two radios

Firmware/software/electronics/mechanics
Post Reply
kato
Beginner
Posts: 13
Joined: Tue Dec 14, 2021 4:10 am

[SOLVED]Many crazyfies and two radios

Post by kato »

Hi, Bitcraze
I'm Japanese college student.
Now I use Crazyswarm and control ten crazyflies via one crazyradio dongle. And it is unstable.
So I want to use two radio dongle with one Desktop PC. I'm about to set up radio dongle address, [radio://0/80/2M/...] and [radio://1/90/2M/...].

But I cant set second radio address:[radio://1/90/2M/...].
Please tell me the way to set second radio address.

thanks in advance.
Last edited by kato on Sun Apr 17, 2022 5:33 am, edited 1 time in total.
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Many crazyfies and two radios

Post by kristoffer »

Hi!

Changing channel takes some time for the radio so the best setup is to use one channel per radio dongle and different addresses for the Crazyflies.
Do not use the same channel on both radios as it leads to packet loss.

For instance do something like this:

Radio 1:
radio://0/50/2M/E7E7E7E701
radio://0/50/2M/E7E7E7E702
radio://0/50/2M/E7E7E7E703
...

Radio 2:
radio://0/100/2M/E7E7E7E701
radio://0/100/2M/E7E7E7E702
radio://0/100/2M/E7E7E7E703
...
kato
Beginner
Posts: 13
Joined: Tue Dec 14, 2021 4:10 am

Re: Many crazyfies and two radios

Post by kato »

Thank you for your early reply

I did it. but I can't figure out how to edit allcrazyflies.yaml. id is not use same time.
So I did this

Radio 1:
radio://0/50/2M/E7E7E7E701
radio://0/50/2M/E7E7E7E702
...
radio://0/50/2M/E7E7E7E705

Radio 2:
radio://0/100/2M/E7E7E7E706
radio://0/100/2M/E7E7E7E707
..
radio://0/100/2M/E7E7E7E70A.
and use id from 1 to 10. It worked.

But I’m not sure if two radios communicate with each drone.

thanks!!
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Many crazyfies and two radios

Post by kimberly »

Hi! Let me just quickly pitch in here, you do have to still put the first number of the URI to 0 for crazyradio number 1 and to 1 for crazyradio number 2, just as you mentioned before. It was just a typo of kristoffer, as now all the crazyflies are only connecting to 1 radio on different channels.

So like this
Radio 1:
radio://0/50/2M/E7E7E7E701
radio://0/50/2M/E7E7E7E702
...
radio://0/50/2M/E7E7E7E705

Radio 2:
radio://1/100/2M/E7E7E7E706
radio://1/100/2M/E7E7E7E707
..
radio://1/100/2M/E7E7E7E70A.

make sure to read through the crazyswarm doc closely and use their support channels on the required support channels, see the readme of https://github.com/USC-ACTLab/crazyswarm
kato
Beginner
Posts: 13
Joined: Tue Dec 14, 2021 4:10 am

Re: Many crazyfies and two radios

Post by kato »

Thank you for your reply.

I'll give it a try !!
Post Reply