From 8295b8dcbf5626c19e6ff0eb73e8ab40bf3646a4 Mon Sep 17 00:00:00 2001 From: crashmatt Date: Mon, 9 Mar 2015 21:57:52 +0100 Subject: [PATCH] Support for bootloading uNode board --- src/VehicleSetup/PX4Bootloader.cc | 2 +- src/VehicleSetup/PX4Bootloader.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/VehicleSetup/PX4Bootloader.cc b/src/VehicleSetup/PX4Bootloader.cc index 217bcca3a..deab12ea4 100644 --- a/src/VehicleSetup/PX4Bootloader.cc +++ b/src/VehicleSetup/PX4Bootloader.cc @@ -439,7 +439,7 @@ bool PX4Bootloader::getBoardInfo(QextSerialPort* port, uint32_t& bootloaderVersi if (!getBoardInfo(port, INFO_BOARD_ID, _boardID)) { goto Error; } - if (_boardID != _boardIDPX4Flow && _boardID != _boardIDPX4FMUV1 && _boardID != _boardIDPX4FMUV2) { + if (_boardID != _boardIDPX4Flow && _boardID != _boardIDPX4FMUV1 && _boardID != _boardIDPX4FMUV2 && _boardID != _boardIDuNode) { _errorString = tr("Unsupported board: %1").arg(_boardID); goto Error; } diff --git a/src/VehicleSetup/PX4Bootloader.h b/src/VehicleSetup/PX4Bootloader.h index 2587c6ae7..12c95b2ca 100644 --- a/src/VehicleSetup/PX4Bootloader.h +++ b/src/VehicleSetup/PX4Bootloader.h @@ -145,6 +145,7 @@ private: static const int _boardIDPX4FMUV1 = 5; ///< Board ID for PX4 V1 board static const int _boardIDPX4FMUV2 = 9; ///< Board ID for PX4 V2 board static const int _boardIDPX4Flow = 6; ///< Board ID for PX4 Floaw board + static const int _boardIDuNode = 29; ///< Board ID for uNode board uint32_t _boardID; ///< board id for currently connected board uint32_t _boardFlashSize; ///< flash size for currently connected board -- 2.22.0