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
fd30f6ce
Commit
fd30f6ce
authored
Jun 20, 2020
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
5ea49f8f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
FirmwareUpgrade.qml
src/VehicleSetup/FirmwareUpgrade.qml
+12
-4
FirmwareUpgradeController.cc
src/VehicleSetup/FirmwareUpgradeController.cc
+2
-0
FirmwareUpgradeController.h
src/VehicleSetup/FirmwareUpgradeController.h
+1
-0
No files found.
src/VehicleSetup/FirmwareUpgrade.qml
View file @
fd30f6ce
...
@@ -28,8 +28,6 @@ SetupPage {
...
@@ -28,8 +28,6 @@ SetupPage {
pageName
:
qsTr
(
"
Firmware
"
)
pageName
:
qsTr
(
"
Firmware
"
)
showAdvanced
:
activeVehicle
&&
activeVehicle
.
apmFirmware
showAdvanced
:
activeVehicle
&&
activeVehicle
.
apmFirmware
signal
cancelDialog
Component
{
Component
{
id
:
firmwarePageComponent
id
:
firmwarePageComponent
...
@@ -135,15 +133,20 @@ SetupPage {
...
@@ -135,15 +133,20 @@ SetupPage {
}
else
{
}
else
{
// We end up here when we detect a board plugged in after we've started upgrade
// We end up here when we detect a board plugged in after we've started upgrade
statusTextArea
.
append
(
highlightPrefix
+
qsTr
(
"
Found device
"
)
+
highlightSuffix
+
"
:
"
+
controller
.
boardType
)
statusTextArea
.
append
(
highlightPrefix
+
qsTr
(
"
Found device
"
)
+
highlightSuffix
+
"
:
"
+
controller
.
boardType
)
if
(
controller
.
p
ixhawkBoard
||
controller
.
p
x4FlowBoard
)
{
if
(
controller
.
px4FlowBoard
)
{
mainWindow
.
showComponentDialog
(
pixhawkFirmwareSelectDialogComponent
,
title
,
mainWindow
.
showDialogDefaultWidth
,
StandardButton
.
Ok
|
StandardButton
.
Cancel
)
mainWindow
.
showComponentDialog
(
pixhawkFirmwareSelectDialogComponent
,
title
,
mainWindow
.
showDialogDefaultWidth
,
StandardButton
.
Ok
|
StandardButton
.
Cancel
)
}
}
}
}
}
}
onBootloaderFound
:
{
if
(
controller
.
pixhawkBoard
)
{
mainWindow
.
showComponentDialog
(
pixhawkFirmwareSelectDialogComponent
,
title
,
mainWindow
.
showDialogDefaultWidth
,
StandardButton
.
Ok
|
StandardButton
.
Cancel
)
}
}
onError
:
{
onError
:
{
statusTextArea
.
append
(
flashFailText
)
statusTextArea
.
append
(
flashFailText
)
firmwarePage
.
cancelDialog
()
}
}
}
}
...
@@ -191,6 +194,11 @@ SetupPage {
...
@@ -191,6 +194,11 @@ SetupPage {
updatePX4VersionDisplay
()
updatePX4VersionDisplay
()
}
}
Connections
{
target
:
controller
onError
:
reject
()
}
function
accept
()
{
function
accept
()
{
if
(
_singleFirmwareMode
)
{
if
(
_singleFirmwareMode
)
{
controller
.
flashSingleFirmwareMode
(
controller
.
selectedFirmwareBuildType
)
controller
.
flashSingleFirmwareMode
(
controller
.
selectedFirmwareBuildType
)
...
...
src/VehicleSetup/FirmwareUpgradeController.cc
View file @
fd30f6ce
...
@@ -245,6 +245,8 @@ void FirmwareUpgradeController::_foundBootloader(int bootloaderVersion, int boar
...
@@ -245,6 +245,8 @@ void FirmwareUpgradeController::_foundBootloader(int bootloaderVersion, int boar
if
(
_rgManifestFirmwareInfo
.
count
())
{
if
(
_rgManifestFirmwareInfo
.
count
())
{
_buildAPMFirmwareNames
();
_buildAPMFirmwareNames
();
}
}
emit
bootloaderFound
();
}
}
...
...
src/VehicleSetup/FirmwareUpgradeController.h
View file @
fd30f6ce
...
@@ -156,6 +156,7 @@ public:
...
@@ -156,6 +156,7 @@ public:
signals:
signals:
void
boardFound
(
void
);
void
boardFound
(
void
);
void
bootloaderFound
(
void
);
void
noBoardFound
(
void
);
void
noBoardFound
(
void
);
void
boardGone
(
void
);
void
boardGone
(
void
);
void
flashComplete
(
void
);
void
flashComplete
(
void
);
...
...
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