lis-epfl / swarmlab

SmarmLab: a versatile Matlab package for drone swarm simulation.
MIT License
211 stars 75 forks source link

leader follower formation #5

Closed amehr90 closed 3 years ago

amehr90 commented 3 years ago

i am trying to implement leader follower on 2 quadcopters using pixhawk can you help me out in my project?

EnricaSo commented 3 years ago

Hello @amehr90,

If you want to implement SITL simulation with the drone firmware running in the loop, you may be interested in reading this.

Swarmlab is not intended to run SITL simulation. However, it may be helpful to validate your swam algorithm in Swarmlab before proceeding to the implementation on the drones. To do so, you could implement your own leader-follower controller in a new file inside the @Swarm folder. This way your controller will be a method of the Swarm class and you can access all the Swarm variables.