old_contents: #!/usr/bin/env python
  
  import numpy as np
  
  from pycrazyswarm import *
  
  if __name__ == "__main__":
      swarm = Crazyswarm()
      timeHelper = swarm.timeHelper
      allcfs = swarm.allcfs
  
      TRIALS = 1
      for i in range(TRIALS):
          allcfs.takeoff(targetHeight=1.0, duration=2.0)
          timeHelper.sleep(2.0)
          for cf in allcfs.crazyflies:
              pos = np.array(cf.initialPosition) + np.array([0, 0, 1.0])
              cf.hover(pos, 0, 1.0)
          timeHelper.sleep(2.0)
  
          allcfs.startCannedTrajectory(0, 0.8)
          timeHelper.sleep(8.0) # TODO...
  
          allcfs.land(targetHeight=0.06, duration=2.0)
          timeHelper.sleep(3.0)
  
  
new_contents: #!/usr/bin/env python
  
  import numpy as np
  
  from pycrazyswarm import *
  
  if __name__ == "__main__":
      swarm = Crazyswarm()
      timeHelper = swarm.timeHelper
      allcfs = swarm.allcfs
  
      TRIALS = 1
      for i in range(TRIALS):
          allcfs.takeoff(targetHeight=1.0, duration=2.0)
          timeHelper.sleep(2.0)
          for cf in allcfs.crazyflies:
              pos = np.array(cf.initialPosition) + np.array([0, 0, 1.0])
              cf.hover(pos, 0, 1.0)
          timeHelper.sleep(1.0)
  
          print("press button to continue...")
          swarm.input.waitUntilButtonPressed()
  
          allcfs.startCannedTrajectory(0, 0.8)
          timeHelper.sleep(8.0) # TODO...
  
          print("press button to continue...")
          swarm.input.waitUntilButtonPressed()
  
          allcfs.land(targetHeight=0.06, duration=2.0)
          timeHelper.sleep(2.0)
  
subject: add more phases (waiting for user input) for figure8_canned