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
6feb451d
Commit
6feb451d
authored
Jun 20, 2020
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
5ea49f8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
ChangeLog.md
ChangeLog.md
+2
-1
QGCSerialPortInfo.cc
src/comm/QGCSerialPortInfo.cc
+25
-0
No files found.
ChangeLog.md
View file @
6feb451d
...
...
@@ -14,8 +14,9 @@ Note: This file only contains high level features or important fixes.
## 4.0
## 4.0.
8
- Not yet released
## 4.0.
9
- Not yet released
*
Don't auto-connect to second Cube Orange/Yellow composite port
*
Plan: Fix bugs associated with mission commands which specify and altitude but no lat/lon
*
Fix bug which could prevent view switching from working after altitude mode warning dialog would pop up
...
...
src/comm/QGCSerialPortInfo.cc
View file @
6feb451d
...
...
@@ -294,10 +294,35 @@ QString QGCSerialPortInfo::_boardTypeToString(BoardType_t boardType)
QList
<
QGCSerialPortInfo
>
QGCSerialPortInfo
::
availablePorts
(
void
)
{
// Cube Orange/Yellow are composite devices which expose two usb ports over a single usb connection.
// The first port is the mavlink connection, the second is the SLCAN connection by default.
// We don't expose the second port as being available to QGC.
static
const
int
hexCubeVID
=
11694
;
static
const
int
hexCubeOrangePID
=
4118
;
static
const
int
hexCubeYellowPID
=
4114
;
bool
cubeOrangeAlreadySeen
=
false
;
bool
cubeYellowAlreadySeen
=
false
;
QList
<
QGCSerialPortInfo
>
list
;
for
(
QSerialPortInfo
portInfo
:
QSerialPortInfo
::
availablePorts
())
{
if
(
!
isSystemPort
(
&
portInfo
))
{
if
(
portInfo
.
vendorIdentifier
()
==
hexCubeVID
&&
portInfo
.
productIdentifier
()
==
hexCubeOrangePID
)
{
if
(
cubeOrangeAlreadySeen
)
{
continue
;
}
qCDebug
(
QGCSerialPortInfoLog
)
<<
"Skipping secondary port on Cube Orange"
<<
portInfo
.
portName
();
cubeOrangeAlreadySeen
=
true
;
}
if
(
portInfo
.
vendorIdentifier
()
==
hexCubeVID
&&
portInfo
.
productIdentifier
()
==
hexCubeYellowPID
)
{
if
(
cubeYellowAlreadySeen
)
{
continue
;
}
qCDebug
(
QGCSerialPortInfoLog
)
<<
"Skipping secondary port on Cube Yellow"
<<
portInfo
.
portName
();
cubeYellowAlreadySeen
=
true
;
}
list
<<
*
((
QGCSerialPortInfo
*
)
&
portInfo
);
}
}
...
...
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