Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
c12933a2
Commit
c12933a2
authored
Apr 18, 2015
by
Don Gagne
Browse files
Allow flash of unknown board ids
parent
9a141821
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/VehicleSetup/PX4Bootloader.cc
View file @
c12933a2
...
...
@@ -439,10 +439,6 @@ bool PX4Bootloader::getBoardInfo(QextSerialPort* port, uint32_t& bootloaderVersi
if
(
!
getBoardInfo
(
port
,
INFO_BOARD_ID
,
_boardID
))
{
goto
Error
;
}
if
(
_boardID
!=
_boardIDPX4Flow
&&
_boardID
!=
_boardIDPX4FMUV1
&&
_boardID
!=
_boardIDPX4FMUV2
&&
_boardID
!=
_boardIDuNode
)
{
_errorString
=
tr
(
"Unsupported board: %1"
).
arg
(
_boardID
);
goto
Error
;
}
if
(
!
getBoardInfo
(
port
,
INFO_FLASH_SIZE
,
_boardFlashSize
))
{
qWarning
()
<<
_errorString
;
...
...
src/VehicleSetup/PX4Bootloader.h
View file @
c12933a2
...
...
@@ -142,11 +142,6 @@ private:
bool
_bootloaderVerifyRev2
(
QextSerialPort
*
port
,
const
QString
firmwareFilename
);
bool
_bootloaderVerifyRev3
(
QextSerialPort
*
port
);
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
uint32_t
_imageCRC
;
///< CRC for image in currently selected firmware file
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment