def download_mission():
 print ' Download mission from vehicle'
 missionlist = []
 cmds = vehicle.commands
 cmds.download()
 cmds.wait_ready()
 for cmd in cmds:
  missionlist.append(cmd)
 return missionlist

def download_mission ( ) : print ' Download mission from vehicle' missionlist = [ ] cmds = vehicle . commands cmds . download ( ) cmds . wait_ready ( ) for cmd in cmds : missionlist . append ( cmd ) return missionlist
download the current mission from the vehicle .