mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:36:48 +08:00
Update debug message as per connection link
This commit is contained in:
@@ -569,6 +569,9 @@ class uploader(object):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
print("Attempting reboot on %s with baudrate=%d..." % (self.port.port, self.port.baudrate), file=sys.stderr)
|
print("Attempting reboot on %s with baudrate=%d..." % (self.port.port, self.port.baudrate), file=sys.stderr)
|
||||||
|
if "ttyS" in self.port.port:
|
||||||
|
print("If the board does not respond, check the connection to Flight Controller")
|
||||||
|
else:
|
||||||
print("If the board does not respond, unplug and re-plug the USB connector.", file=sys.stderr)
|
print("If the board does not respond, unplug and re-plug the USB connector.", file=sys.stderr)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -614,7 +617,6 @@ def main():
|
|||||||
# Load the firmware file
|
# Load the firmware file
|
||||||
fw = firmware(args.firmware)
|
fw = firmware(args.firmware)
|
||||||
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..." % (fw.property('board_id'), fw.property('board_revision'), fw.property('image_size')))
|
||||||
print("If the board does not respond within 1-2 seconds, unplug and re-plug the USB connector.")
|
|
||||||
|
|
||||||
# tell any GCS that might be connected to the autopilot to give up
|
# tell any GCS that might be connected to the autopilot to give up
|
||||||
# control of the serial port
|
# control of the serial port
|
||||||
|
|||||||
Reference in New Issue
Block a user