def upload_mission(aFileName):
 missionlist = readmission(aFileName)
 print ('\nUpload mission from a file: %s' % import_mission_filename)
 print ' Clear mission'
 cmds = vehicle.commands
 cmds.clear()
 for command in missionlist:
  cmds.add(command)
 print ' Upload mission'
 vehicle.commands.upload()

def upload_mission ( aFileName ) : missionlist = readmission ( aFileName ) print ( '\nUpload mission from a file: %s' % import_mission_filename ) print ' Clear mission' cmds = vehicle . commands cmds . clear ( ) for command in missionlist : cmds . add ( command ) print ' Upload mission' vehicle . commands . upload ( )
upload a mission from a file .