Swarm flight synchronization. #1735
Replies: 1 comment
-
Hi @sextta-feira! Since the parallel() functions spawns one thread per Crazyflie, its inherently asynchronous. You could sync the threads using maybe some semaphores or similar. The parallel() function will join all threads before exiting, which means every call to parallel will end with the Crazyflies being synchronized.
This should accomplish what I think you are asking for. If you want to do more complex swarming using the Crazyflies i would suggest looking at Crazyswarm2 and Skybrush. |
Beta Was this translation helpful? Give feedback.
-
I am trying to apply a sequence of actions to three drones, but I am facing some issues with the order of events. I have created a class for the drone and instantiated an object to call actions like take-off, flying, etc. For the flight, I am using a custom RST controller and the send_velocity_world_setpoint command, which works very well for a single drone. However, when applying it to three drones, I am encountering synchronization problems.
I tried creating my own synchronization function, but it wasn’t very effective. I would like to know if the swarm has any built-in function to make the drones wait until they reach the same point in the code before continuing, or if there is a more effective way to perform swarm control.
Beta Was this translation helpful? Give feedback.
All reactions