Commit 8295b8dc authored by crashmatt's avatar crashmatt

Support for bootloading uNode board

parent 02f36bf3
...@@ -439,7 +439,7 @@ bool PX4Bootloader::getBoardInfo(QextSerialPort* port, uint32_t& bootloaderVersi ...@@ -439,7 +439,7 @@ bool PX4Bootloader::getBoardInfo(QextSerialPort* port, uint32_t& bootloaderVersi
if (!getBoardInfo(port, INFO_BOARD_ID, _boardID)) { if (!getBoardInfo(port, INFO_BOARD_ID, _boardID)) {
goto Error; 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); _errorString = tr("Unsupported board: %1").arg(_boardID);
goto Error; goto Error;
} }
......
...@@ -145,6 +145,7 @@ private: ...@@ -145,6 +145,7 @@ private:
static const int _boardIDPX4FMUV1 = 5; ///< Board ID for PX4 V1 board 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 _boardIDPX4FMUV2 = 9; ///< Board ID for PX4 V2 board
static const int _boardIDPX4Flow = 6; ///< Board ID for PX4 Floaw 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 _boardID; ///< board id for currently connected board
uint32_t _boardFlashSize; ///< flash size for currently connected board uint32_t _boardFlashSize; ///< flash size for currently connected board
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment