From 6ed0286e594c0d9b8151ebf46ea28dc8af2c7b43 Mon Sep 17 00:00:00 2001 From: Aris Date: Fri, 17 Jan 2025 13:19:30 +0100 Subject: [PATCH] Aris/Clarify_Same_Channel_In_Swarm_Examples --- examples/swarm/hl-commander-swarm.py | 1 + examples/swarm/swarmSequence.py | 1 + examples/swarm/swarmSequenceCircle.py | 1 + examples/swarm/synchronizedSequence.py | 1 + 4 files changed, 4 insertions(+) diff --git a/examples/swarm/hl-commander-swarm.py b/examples/swarm/hl-commander-swarm.py index 662d19317..a3f4ddf27 100644 --- a/examples/swarm/hl-commander-swarm.py +++ b/examples/swarm/hl-commander-swarm.py @@ -82,6 +82,7 @@ def run_shared_sequence(scf): 'radio://0/30/2M/E7E7E7E711', 'radio://0/30/2M/E7E7E7E712', # Add more URIs if you want more copters in the swarm + # URIs in a swarm using the same radio must also be on the same channel } if __name__ == '__main__': diff --git a/examples/swarm/swarmSequence.py b/examples/swarm/swarmSequence.py index a3d5e9e2d..cd4ee640d 100644 --- a/examples/swarm/swarmSequence.py +++ b/examples/swarm/swarmSequence.py @@ -52,6 +52,7 @@ from cflib.crazyflie.swarm import Swarm # Change uris and sequences according to your setup +# URIs in a swarm using the same radio must also be on the same channel URI1 = 'radio://0/70/2M/E7E7E7E701' URI2 = 'radio://0/70/2M/E7E7E7E702' URI3 = 'radio://0/70/2M/E7E7E7E703' diff --git a/examples/swarm/swarmSequenceCircle.py b/examples/swarm/swarmSequenceCircle.py index 90835e3ff..90ecd7bbb 100644 --- a/examples/swarm/swarmSequenceCircle.py +++ b/examples/swarm/swarmSequenceCircle.py @@ -44,6 +44,7 @@ from cflib.crazyflie.swarm import Swarm # Change uris according to your setup +# URIs in a swarm using the same radio must also be on the same channel URI0 = 'radio://0/70/2M/E7E7E7E7E7' URI1 = 'radio://0/110/2M/E7E7E7E702' URI2 = 'radio://0/94/2M/E7E7E7E7E7' diff --git a/examples/swarm/synchronizedSequence.py b/examples/swarm/synchronizedSequence.py index 7d839df33..f6483f4b4 100755 --- a/examples/swarm/synchronizedSequence.py +++ b/examples/swarm/synchronizedSequence.py @@ -59,6 +59,7 @@ 'radio://0/10/2M/E7E7E7E702', # cf_id 1, startup position [ 0, 0] 'radio://0/10/2M/E7E7E7E703', # cf_id 3, startup position [0.5, 0.5] # Add more URIs if you want more copters in the swarm + # URIs in a swarm using the same radio must also be on the same channel ] sequence = [