Closed fbenti closed 2 years ago
I'm currently having problems sending commands to all crazyflies.
sending sequential commands as below, everything works fine, the two drones that I'm using take off and land.
swarm = Crazyswarm() timeHelper = swarm.timeHelper allcfs = swarm.allcfs for cf in allcfs.crazyflies: cf.takeoff(targetHeight=Z, duration=1.0+Z) timeHelper.sleep(1.5+Z) for cf in allcfs.crazyflies: cf.land(targetHeight=0.02, duration=2.5)
And this is the message in the stdout:
[ INFO] [1665483673.210999132]: [cf1] Takeoff [ INFO] [1665483673.225482237]: [cf7] Takeoff [ INFO] [1665483675.742665321]: [cf1] Land [ INFO] [1665483675.757914551]: [cf7] Land
HOWEVER, when I use the default takeoff and land command for swarm, as below, nothing happen.
allcfs.takeoff(targetHeight=Z, duration=1.0+Z) timeHelper.sleep(1.5+Z) allcfs.land(targetHeight=0.02, duration=1.0+Z) timeHelper.sleep(1.0+Z)
[ INFO] [1665483845.223266419]: Takeoff! [ INFO] [1665483847.755985005]: Land!
I'm currently having problems sending commands to all crazyflies.
sending sequential commands as below, everything works fine, the two drones that I'm using take off and land.
And this is the message in the stdout:
HOWEVER, when I use the default takeoff and land command for swarm, as below, nothing happen.