code: def upload_mission(aFileName):
      
      #Read mission from file
      missionlist = readmission(aFileName)
      
      print("\nUpload mission from a file: %s" % aFileName)
      #Clear existing mission from vehicle
      print(' Clear mission')
      cmds = vehicle.commands
      cmds.clear()
      #Add new mission to vehicle
      for command in missionlist:
          cmds.add(command)
      print(' Upload mission')
      vehicle.commands.upload()
docs: Upload a mission from a file.