Uploader tool: Add option to set different baudrates for bootloader and flight stack
By default the baudrate in flight stack (Mavlink or NSH) 57600 and the default
baudrate of bootloader is 115200. So we may need to set different
baudrates.
sbg
José Roberto de Souza8 years agocommitted byLorenz Meier
parser=argparse.ArgumentParser(description="Firmware uploader for the PX autopilot system.")
parser.add_argument('--port',action="store",required=True,help="Serial port(s) to which the FMU may be attached")
parser.add_argument('--baud',action="store",type=int,default=115200,help="Baud rate of the serial port (default is 115200), only required for true serial ports.")
parser.add_argument('--baud-bootloader',action="store",type=int,default=115200,help="Baud rate of the serial port (default is 115200) when communicating with bootloader, only required for true serial ports.")
parser.add_argument('--baud-flightstack',action="store",type=int,default=57600,help="Baud rate of the serial port (default is 57600) when communicating with flight stack(Mavlink or NSH), only required for true serial ports.")
parser.add_argument('--force',action='store_true',default=False,help='Override board type check and continue loading')
parser.add_argument('--boot-delay',type=int,default=None,help='minimum boot delay to store in flash')
parser.add_argument('firmware',action="store",help="Firmware file to be uploaded")