@ -868,6 +881,7 @@ WARNING: You should uninstall ModemManager as it conflicts with any non-modem se
@@ -868,6 +881,7 @@ WARNING: You should uninstall ModemManager as it conflicts with any non-modem se
parser=argparse.ArgumentParser(description="Firmware uploader for the PX autopilot system.")
parser.add_argument('--port',action="store",help="Comma-separated list of serial port(s) to which the FMU may be attached",
default=None)
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-bootloader-flash',action="store",type=int,default=None,help="Attempt to negotiate this baudrate with bootloader for flashing.")
parser.add_argument('--baud-flightstack',action="store",default="57600",help="Comma-separated list of 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(
'--port',
action="store",
help="Comma-separated list of serial port(s) to which the FMU may be attached",
default=None
)
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."# NOQA
)
parser.add_argument(
'--baud-bootloader-flash',
action="store",
type=int,
default=None,
help="Attempt to negotiate this baudrate with bootloader for flashing."
)
parser.add_argument(
'--baud-flightstack',
action="store",
default="57600",
help="Comma-separated list of baud rate of the serial port (default is 57600) when communicating with flight stack (Mavlink or NSH), only required for true serial ports."# NOQA
)
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('--target-system',type=int,action="store",help="System ID to update")
parser.add_argument('--target-component',type=int,action="store",help="Component ID to update")
parser.add_argument('--source-system',type=int,action="store",help="Source system to send reboot mavlink packets from",default=255)
parser.add_argument('--source-component',type=int,action="store",help="Source component to send reboot mavlink packets from",default=0)
parser.add_argument(
'--source-system',
type=int,
action="store",
help="Source system to send reboot mavlink packets from",
default=255
)
parser.add_argument(
'--source-component',
type=int,
action="store",
help="Source component to send reboot mavlink packets from",
default=0
)
parser.add_argument('--download',action='store_true',default=False,help='download firmware from board')
parser.add_argument('--identify',action="store_true",help="Do not flash firmware; simply dump information about board")
parser.add_argument('firmware',nargs="?",action="store",default=None,help="Firmware file to be uploaded")
print("Loaded firmware for %x,%x, size: %d bytes, waiting for the bootloader..."%(fw.property('board_id'),fw.property('board_revision'),fw.property('image_size')))
print("Loaded firmware for %x,%x, size: %d bytes, waiting for the bootloader..."%