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
201a2a0b
Commit
201a2a0b
authored
Jul 27, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle older bootloaders
parent
a48b1192
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
SerialPortIds.h
src/SerialPortIds.h
+8
-7
PX4FirmwareUpgradeThread.cc
src/VehicleSetup/PX4FirmwareUpgradeThread.cc
+1
-3
No files found.
src/SerialPortIds.h
View file @
201a2a0b
...
...
@@ -28,17 +28,18 @@
class
SerialPortIds
{
public:
static
const
int
px4VendorId
=
9900
;
///< Vendor ID for Pixhawk board (V2 and V1) and PX4 Flow
static
const
int
px4VendorId
=
9900
;
///< Vendor ID for Pixhawk board (V2 and V1) and PX4 Flow
static
const
int
pixhawkFMUV2ProductId
=
17
;
///< Product ID for Pixhawk V2 board
static
const
int
pixhawkFMUV1ProductId
=
16
;
///< Product ID for PX4 FMU V1 board
static
const
int
pixhawkFMUV2ProductId
=
17
;
///< Product ID for Pixhawk V2 board
static
const
int
pixhawkFMUV2OldBootloaderProductId
=
22
;
///< Product ID for Bootloader on older Pixhawk V2 boards
static
const
int
pixhawkFMUV1ProductId
=
16
;
///< Product ID for PX4 FMU V1 board
static
const
int
AeroCoreProductId
=
4097
;
///< Product ID for the AeroCore board
static
const
int
AeroCoreProductId
=
4097
;
///< Product ID for the AeroCore board
static
const
int
px4FlowProductId
=
21
;
///< Product ID for PX4 Flow board
static
const
int
px4FlowProductId
=
21
;
///< Product ID for PX4 Flow board
static
const
int
threeDRRadioVendorId
=
1027
;
///< Vendor ID for 3DR Radio
static
const
int
threeDRRadioProductId
=
24597
;
///< Product ID for 3DR Radio
static
const
int
threeDRRadioVendorId
=
1027
;
///< Vendor ID for 3DR Radio
static
const
int
threeDRRadioProductId
=
24597
;
///< Product ID for 3DR Radio
};
#endif
src/VehicleSetup/PX4FirmwareUpgradeThread.cc
View file @
201a2a0b
...
...
@@ -136,19 +136,17 @@ bool PX4FirmwareUpgradeThreadWorker::_findBoardFromPorts(QSerialPortInfo& portIn
bool
found
=
false
;
foreach
(
QSerialPortInfo
info
,
QSerialPortInfo
::
availablePorts
())
{
#if 0
qCDebug
(
FirmwareUpgradeLog
)
<<
"Serial Port --------------"
;
qCDebug
(
FirmwareUpgradeLog
)
<<
"
\t
port name:"
<<
info
.
portName
();
qCDebug
(
FirmwareUpgradeLog
)
<<
"
\t
description:"
<<
info
.
description
();
qCDebug
(
FirmwareUpgradeLog
)
<<
"
\t
system location:"
<<
info
.
systemLocation
();
qCDebug
(
FirmwareUpgradeLog
)
<<
"
\t
vendor ID:"
<<
info
.
vendorIdentifier
();
qCDebug
(
FirmwareUpgradeLog
)
<<
"
\t
product ID:"
<<
info
.
productIdentifier
();
#endif
if
(
!
info
.
portName
().
isEmpty
())
{
switch
(
info
.
vendorIdentifier
())
{
case
SerialPortIds
:
:
px4VendorId
:
if
(
info
.
productIdentifier
()
==
SerialPortIds
::
pixhawkFMUV2ProductId
)
{
if
(
info
.
productIdentifier
()
==
SerialPortIds
::
pixhawkFMUV2ProductId
||
info
.
productIdentifier
()
==
SerialPortIds
::
pixhawkFMUV2OldBootloaderProductId
)
{
qCDebug
(
FirmwareUpgradeLog
)
<<
"Found PX4 FMU V2"
;
type
=
FoundBoardPX4FMUV2
;
found
=
true
;
...
...
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