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
686c6b78
Commit
686c6b78
authored
Apr 27, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Firmware Update from table build
Also removes qextserialport
parent
7411b3c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
6 deletions
+23
-6
QGCApplication.pro
QGCApplication.pro
+16
-6
SetupView.cc
src/VehicleSetup/SetupView.cc
+7
-0
No files found.
QGCApplication.pro
View file @
686c6b78
...
...
@@ -103,9 +103,11 @@ DebugBuild {
CONFIG
+=
console
}
!
AndroidBuild
{
#
qextserialport
should
not
be
used
by
general
QGroundControl
code
.
Use
QSerialPort
instead
.
This
is
only
#
here
to
support
special
case
Firmware
Upgrade
code
.
include
(
libs
/
qextserialport
/
src
/
qextserialport
.
pri
)
}
#
#
External
library
configuration
...
...
@@ -627,12 +629,16 @@ HEADERS+= \
src
/
AutoPilotPlugins
/
PX4
/
SafetyComponent
.
h
\
src
/
AutoPilotPlugins
/
PX4
/
SensorsComponent
.
h
\
src
/
AutoPilotPlugins
/
PX4
/
SensorsComponentController
.
h
\
src
/
VehicleSetup
/
FirmwareUpgradeController
.
h
\
src
/
VehicleSetup
/
PX4Bootloader
.
h
\
src
/
VehicleSetup
/
PX4FirmwareUpgradeThread
.
h
\
src
/
VehicleSetup
/
SetupView
.
h
\
src
/
VehicleSetup
/
VehicleComponent
.
h
\
!
AndroidBuild
{
HEADERS
+=
\
src
/
VehicleSetup
/
FirmwareUpgradeController
.
h
\
src
/
VehicleSetup
/
PX4Bootloader
.
h
\
src
/
VehicleSetup
/
PX4FirmwareUpgradeThread
.
h
}
SOURCES
+=
\
src
/
AutoPilotPlugins
/
AutoPilotPlugin
.
cc
\
src
/
AutoPilotPlugins
/
AutoPilotPluginManager
.
cc
\
...
...
@@ -651,12 +657,16 @@ SOURCES += \
src
/
AutoPilotPlugins
/
PX4
/
SafetyComponent
.
cc
\
src
/
AutoPilotPlugins
/
PX4
/
SensorsComponent
.
cc
\
src
/
AutoPilotPlugins
/
PX4
/
SensorsComponentController
.
cc
\
src
/
VehicleSetup
/
FirmwareUpgradeController
.
cc
\
src
/
VehicleSetup
/
PX4Bootloader
.
cc
\
src
/
VehicleSetup
/
PX4FirmwareUpgradeThread
.
cc
\
src
/
VehicleSetup
/
SetupView
.
cc
\
src
/
VehicleSetup
/
VehicleComponent
.
cc
\
!
AndroidBuild
{
SOURCES
+=
\
src
/
VehicleSetup
/
FirmwareUpgradeController
.
cc
\
src
/
VehicleSetup
/
PX4Bootloader
.
cc
\
src
/
VehicleSetup
/
PX4FirmwareUpgradeThread
.
cc
}
#
Fact
System
code
INCLUDEPATH
+=
\
...
...
src/VehicleSetup/SetupView.cc
View file @
686c6b78
...
...
@@ -33,7 +33,9 @@
#include "QGCQmlWidgetHolder.h"
#include "MainWindow.h"
#include "QGCMessageBox.h"
#ifndef __android__
#include "FirmwareUpgradeController.h"
#endif
#include "ParameterEditorController.h"
#include <QQmlError>
...
...
@@ -54,7 +56,9 @@ SetupView::SetupView(QWidget* parent) :
Q_UNUSED
(
fSucceeded
);
Q_ASSERT
(
fSucceeded
);
#ifndef __android__
qmlRegisterType
<
FirmwareUpgradeController
>
(
"QGroundControl.Controllers"
,
1
,
0
,
"FirmwareUpgradeController"
);
#endif
_ui
->
buttonHolder
->
rootContext
()
->
setContextProperty
(
"controller"
,
this
);
_ui
->
buttonHolder
->
setAutoPilot
(
NULL
);
...
...
@@ -116,6 +120,8 @@ void SetupView::_changeSetupWidget(QWidget* newWidget)
void
SetupView
::
firmwareButtonClicked
(
void
)
{
#ifndef __android__
//FIXME: Hack out for android for now
if
(
_uasCurrent
&&
_uasCurrent
->
isArmed
())
{
QGCMessageBox
::
warning
(
"Setup"
,
"Firmware Update cannot be performed while vehicle is armed."
);
return
;
...
...
@@ -127,6 +133,7 @@ void SetupView::firmwareButtonClicked(void)
setup
->
setSource
(
QUrl
::
fromUserInput
(
"qrc:/qml/FirmwareUpgrade.qml"
));
_changeSetupWidget
(
setup
);
#endif
}
void
SetupView
::
parametersButtonClicked
(
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