Skip to content

Commit

Permalink
fix simple-swarm example trying to fly 0cm with the first drone (closes
Browse files Browse the repository at this point in the history
  • Loading branch information
M4GNV5 committed Jun 18, 2021
1 parent cdac2cc commit fe63949
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/simple-swarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
swarm.move_up(100)

# run by one tello after the other
swarm.sequential(lambda i, tello: tello.move_forward(i * 20))
swarm.sequential(lambda i, tello: tello.move_forward(i * 20 + 20))

# making each tello do something unique in parallel
swarm.parallel(lambda i, tello: tello.move_left(i * 100))
swarm.parallel(lambda i, tello: tello.move_left(i * 100 + 20))

swarm.land()
swarm.end()
swarm.end()

0 comments on commit fe63949

Please sign in to comment.