def upload_mission(aFileName):
    #Read mission from file
    missionlist = readmission(aFileName)
    
    print "\nUpload mission from a file: %s" % import_mission_filename
    #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()
generator factory function to create generator to run this monitor
dataset/ETHPy150Open dronekit/dronekit-python/examples/mission_import_export/mission_import_export.py/upload_mission--crossover with--dataset/ETHPy150Open ioflo/ioflo/ioflo/base/serving.py/Server.makeRunner