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
3f2f8476
Commit
3f2f8476
authored
Aug 08, 2018
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
e09e6694
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
133 additions
and
158 deletions
+133
-158
FirmwareImage.cc
src/VehicleSetup/FirmwareImage.cc
+3
-0
FirmwareUpgradeController.cc
src/VehicleSetup/FirmwareUpgradeController.cc
+121
-150
FirmwareUpgradeController.h
src/VehicleSetup/FirmwareUpgradeController.h
+6
-7
QGCSerialPortInfo.cc
src/comm/QGCSerialPortInfo.cc
+2
-1
USBBoardInfo.json
src/comm/USBBoardInfo.json
+1
-0
No files found.
src/VehicleSetup/FirmwareImage.cc
View file @
3f2f8476
...
...
@@ -57,6 +57,9 @@ bool FirmwareImage::load(const QString& imageFilename, uint32_t boardId)
}
else
if
(
imageFilename
.
endsWith
(
".px4"
))
{
_binFormat
=
true
;
return
_px4Load
(
imageFilename
);
}
else
if
(
imageFilename
.
endsWith
(
".apj"
))
{
_binFormat
=
true
;
return
_px4Load
(
imageFilename
);
}
else
if
(
imageFilename
.
endsWith
(
".ihx"
))
{
_binFormat
=
false
;
return
_ihxLoad
(
imageFilename
);
...
...
src/VehicleSetup/FirmwareUpgradeController.cc
View file @
3f2f8476
This diff is collapsed.
Click to expand it.
src/VehicleSetup/FirmwareUpgradeController.h
View file @
3f2f8476
...
...
@@ -54,17 +54,16 @@ public:
}
FirmwareType_t
;
typedef
enum
{
QuadFirmware
,
X8Firmware
,
HexaFirmware
,
OctoFirmware
,
YFirmware
,
Y6Firmware
,
HeliFirmware
,
CopterFirmware
,
HeliFirmware
,
PlaneFirmware
,
RoverFirmware
,
SubFirmware
,
CopterChibiOSFirmware
,
HeliChibiOSFirmware
,
PlaneChibiOSFirmware
,
RoverChibiOSFirmware
,
SubChibiOSFirmware
,
DefaultVehicleFirmware
}
FirmwareVehicleType_t
;
...
...
src/comm/QGCSerialPortInfo.cc
View file @
3f2f8476
...
...
@@ -185,6 +185,8 @@ QGCSerialPortInfo::BoardType_t QGCSerialPortInfo::_boardClassStringToType(const
bool
QGCSerialPortInfo
::
getBoardInfo
(
QGCSerialPortInfo
::
BoardType_t
&
boardType
,
QString
&
name
)
const
{
boardType
=
BoardTypeUnknown
;
_loadJsonData
();
if
(
isNull
())
{
...
...
@@ -220,7 +222,6 @@ bool QGCSerialPortInfo::getBoardInfo(QGCSerialPortInfo::BoardType_t& boardType,
}
}
boardType
=
BoardTypeUnknown
;
return
false
;
}
...
...
src/comm/USBBoardInfo.json
View file @
3f2f8476
...
...
@@ -57,6 +57,7 @@
{
"regExp"
:
"^PX4 Crazyflie v2.0", "boardClass"
:
"Pixhawk"
},
{
"regExp"
:
"^Crazyflie BL", "boardClass"
:
"Pixhawk"
},
{
"regExp"
:
"^PX4 OmnibusF4SD", "boardClass"
:
"Pixhawk"
},
{
"regExp"
:
"^fmuv[2345]$", "boardClass"
:
"Pixhawk"
},
{
"regExp"
:
"PX4.*Flow", "boardClass"
:
"PX4 Flow"
},
{
"regExp"
:
"^FT231X USB UART$", "boardClass"
:
"SiK Radio"
},
{
"regExp"
:
"USB UART$", "boardClass"
:
"SiK Radio", "androidOnly"
:
true
,
"comment"
:
"Very broad fallback, too dangerous for non-android"
}
...
...
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