Edit code 'radiodriver.py' for using multi-cf2

Discussions and questions about the Crazyradio
Post Reply
song
Beginner
Posts: 15
Joined: Tue Jan 29, 2019 12:24 am

Edit code 'radiodriver.py' for using multi-cf2

Post by song » Mon Mar 11, 2019 5:43 am

Hi, there
I've tried to use multi Crazyflie(more than one) with a single radio dongle.
So i searched forums to get how to do, and i found a similar question on Forums. Here's the link.
viewtopic.php?t=624

What i want to know is what version of python code is adequate to be edited.
I mean, I'm using now the latest version of Crazyflies and firmware, but that Post of the forum doesn't seem to in the same environment.
Is it okay just add some code (as marked '+' pictured below) into my 'radiodriver.py'(It's up-to-date)?
이미지 4.png
I really want to make my project to be succeeded.
I'm looking forward to your reply. Thank you!

arnaud
Bitcraze
Posts: 2000
Joined: Tue Feb 06, 2007 12:36 pm

Re: Edit code 'radiodriver.py' for using multi-cf2

Post by arnaud » Mon Mar 11, 2019 7:13 am

That post is very old and thinks have evolved since then.

The lib is not capable to connect multiple Crazyflie out of the box, using one or multiple radios. There is a couple of example showing how to connect multiple Crazyflie with a single Crazyradio in the Crazyflie lib python repos. The most basic is multiramp: https://github.com/bitcraze/crazyflie-l ... ltiramp.py. Depending of what you want to achieve there is also higher level lib like the swarm class: https://github.com/bitcraze/crazyflie-l ... equence.py.

song
Beginner
Posts: 15
Joined: Tue Jan 29, 2019 12:24 am

Re: Edit code 'radiodriver.py' for using multi-cf2

Post by song » Mon Mar 11, 2019 7:37 am

How fast reply! Thank you!

Unfortunately, i'm not familiar with Python language. So i need a little bit more your help.
In 'multiramp.py', There's a comment and that would be a help to me.
but i don't understand exactly how to use it.
I mean, 1) How to change address 2) Tools that i should use, etc.
The final goal of my project is using 10 Crazyflie with 6 (or 4)anchors.
So the step(sequence) to set-up for 'multiramp' is what i really need.

I already succeed to change each Cf2 address with 'write-eeprom.py'
but i don't know the next step.

Thank you.

Post Reply