Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
8295b8dc
Commit
8295b8dc
authored
Mar 09, 2015
by
crashmatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for bootloading uNode board
parent
02f36bf3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
PX4Bootloader.cc
src/VehicleSetup/PX4Bootloader.cc
+1
-1
PX4Bootloader.h
src/VehicleSetup/PX4Bootloader.h
+1
-0
No files found.
src/VehicleSetup/PX4Bootloader.cc
View file @
8295b8dc
...
@@ -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
;
}
}
...
...
src/VehicleSetup/PX4Bootloader.h
View file @
8295b8dc
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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