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
02908ee4
Commit
02908ee4
authored
Sep 12, 2016
by
Alessio Morale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LP Support] - Add OpenPilot hardware USB IDs
parent
f28a9286
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
CdcAcmSerialDriver.java
...com/hoho/android/usbserial/driver/CdcAcmSerialDriver.java
+7
-0
UsbId.java
android/src/com/hoho/android/usbserial/driver/UsbId.java
+6
-0
No files found.
android/src/com/hoho/android/usbserial/driver/CdcAcmSerialDriver.java
View file @
02908ee4
...
...
@@ -297,6 +297,13 @@ public class CdcAcmSerialDriver extends CommonUsbSerialDriver {
UsbId
.
DEVICE_UBLOX_7
,
UsbId
.
DEVICE_UBLOX_8
,
});
supportedDevices
.
put
(
Integer
.
valueOf
(
UsbId
.
VENDOR_OPENPILOT
),
new
int
[]
{
UsbId
.
DEVICE_CC3D
,
UsbId
.
DEVICE_REVOLUTION
,
UsbId
.
DEVICE_SPARKY2
,
UsbId
.
DEVICE_OPLINK
,
});
return
supportedDevices
;
}
...
...
android/src/com/hoho/android/usbserial/driver/UsbId.java
View file @
02908ee4
...
...
@@ -68,6 +68,12 @@ public final class UsbId {
public
static
final
int
DEVICE_UBLOX_7
=
0x01a7
;
public
static
final
int
DEVICE_UBLOX_8
=
0x01a8
;
public
static
final
int
VENDOR_OPENPILOT
=
0x20A0
;
public
static
final
int
DEVICE_REVOLUTION
=
0x415E
;
public
static
final
int
DEVICE_OPLINK
=
0x415C
;
public
static
final
int
DEVICE_SPARKY2
=
0x41D0
;
public
static
final
int
DEVICE_CC3D
=
0x415D
;
private
UsbId
()
{
throw
new
IllegalAccessError
(
"Non-instantiable class."
);
}
...
...
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