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
235b986f
Commit
235b986f
authored
Jun 02, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1629 from aerocore/master
Add AeroCore support to firmware upgrade utility and link manager.
parents
e3a27797
3c29b077
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
5 deletions
+22
-5
FirmwareUpgradeController.cc
src/VehicleSetup/FirmwareUpgradeController.cc
+17
-4
FirmwareUpgradeController.h
src/VehicleSetup/FirmwareUpgradeController.h
+1
-0
LinkManager.cc
src/comm/LinkManager.cc
+4
-1
No files found.
src/VehicleSetup/FirmwareUpgradeController.cc
View file @
235b986f
...
...
@@ -168,6 +168,13 @@ void FirmwareUpgradeController::_getFirmwareFile(void)
"http://px4-travis.s3.amazonaws.com/Firmware/master/px4fmu-v2_default.px4"
};
static
const
char
*
rgAeroCoreFirmware
[
3
]
=
{
"http://s3-us-west-2.amazonaws.com/gumstix-aerocore/PX4/stable/aerocore_default.px4"
,
"http://s3-us-west-2.amazonaws.com/gumstix-aerocore/PX4/beta/aerocore_default.px4"
,
"http://s3-us-west-2.amazonaws.com/gumstix-aerocore/PX4/master/aerocore_default.px4"
};
static
const
char
*
rgPX4FlowFirmware
[
3
]
=
{
"http://px4-travis.s3.amazonaws.com/Flow/master/px4flow.px4"
,
...
...
@@ -191,6 +198,10 @@ void FirmwareUpgradeController::_getFirmwareFile(void)
prgFirmware
=
rgPX4FMUV2Firmware
;
break
;
case
_boardIDAeroCore
:
prgFirmware
=
rgAeroCoreFirmware
;
break
;
default:
prgFirmware
=
NULL
;
break
;
...
...
@@ -427,6 +438,8 @@ void FirmwareUpgradeController::_downloadFinished(void)
firmwareBoardID
=
_boardIDPX4Flow
;
}
else
if
(
downloadFilename
.
toLower
().
contains
(
"px4fmu-v1"
))
{
firmwareBoardID
=
_boardIDPX4FMUV1
;
}
else
if
(
downloadFilename
.
toLower
().
contains
(
"aerocore"
))
{
firmwareBoardID
=
_boardIDAeroCore
;
}
if
(
firmwareBoardID
!=
0
&&
firmwareBoardID
!=
_boardID
)
{
...
...
src/VehicleSetup/FirmwareUpgradeController.h
View file @
235b986f
...
...
@@ -127,6 +127,7 @@ private:
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
_boardIDPX4Flow
=
6
;
///< Board ID for PX4 Flow board
static
const
int
_boardIDAeroCore
=
98
;
///< Board ID for Gumstix AeroCore board
uint32_t
_boardID
;
///< Board ID
uint32_t
_boardFlashSize
;
///< Flash size in bytes of board
...
...
src/comm/LinkManager.cc
View file @
235b986f
...
...
@@ -481,6 +481,9 @@ void LinkManager::_updateConfigurationList(void)
}
}
else
{
// Lets create a new Serial configuration automatically
if
(
portInfo
.
description
()
==
"AeroCore"
)
pSerial
=
new
SerialConfiguration
(
QString
(
"AeroCore on %1"
).
arg
(
portInfo
.
portName
().
trimmed
()));
else
pSerial
=
new
SerialConfiguration
(
QString
(
"Pixhawk on %1"
).
arg
(
portInfo
.
portName
().
trimmed
()));
pSerial
->
setDynamic
(
true
);
pSerial
->
setPreferred
(
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