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
81aa4b4a
Unverified
Commit
81aa4b4a
authored
Jun 05, 2018
by
Don Gagne
Committed by
GitHub
Jun 05, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6562 from DonLakeFlyer/HeliSetup
ArduCopter: Initial Heli Setup page
parents
c923927c
585f8efd
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
320 additions
and
16 deletions
+320
-16
qgroundcontrol.pro
qgroundcontrol.pro
+2
-0
APMAutoPilotPlugin.cc
src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc
+22
-14
APMAutoPilotPlugin.h
src/AutoPilotPlugins/APM/APMAutoPilotPlugin.h
+2
-0
APMHeliComponent.cc
src/AutoPilotPlugins/APM/APMHeliComponent.cc
+57
-0
APMHeliComponent.h
src/AutoPilotPlugins/APM/APMHeliComponent.h
+37
-0
APMHeliComponent.qml
src/AutoPilotPlugins/APM/APMHeliComponent.qml
+199
-0
FactCheckBox.qml
src/FactSystem/FactControls/FactCheckBox.qml
+0
-2
APMResources.qrc
src/FirmwarePlugin/APM/APMResources.qrc
+1
-0
No files found.
qgroundcontrol.pro
View file @
81aa4b4a
...
...
@@ -948,6 +948,7 @@ APMFirmwarePlugin {
src
/
AutoPilotPlugins
/
APM
/
APMCompassCal
.
h
\
src
/
AutoPilotPlugins
/
APM
/
APMFlightModesComponent
.
h
\
src
/
AutoPilotPlugins
/
APM
/
APMFlightModesComponentController
.
h
\
src
/
AutoPilotPlugins
/
APM
/
APMHeliComponent
.
h
\
src
/
AutoPilotPlugins
/
APM
/
APMLightsComponent
.
h
\
src
/
AutoPilotPlugins
/
APM
/
APMSubFrameComponent
.
h
\
src
/
AutoPilotPlugins
/
APM
/
APMPowerComponent
.
h
\
...
...
@@ -973,6 +974,7 @@ APMFirmwarePlugin {
src
/
AutoPilotPlugins
/
APM
/
APMCompassCal
.
cc
\
src
/
AutoPilotPlugins
/
APM
/
APMFlightModesComponent
.
cc
\
src
/
AutoPilotPlugins
/
APM
/
APMFlightModesComponentController
.
cc
\
src
/
AutoPilotPlugins
/
APM
/
APMHeliComponent
.
cc
\
src
/
AutoPilotPlugins
/
APM
/
APMLightsComponent
.
cc
\
src
/
AutoPilotPlugins
/
APM
/
APMSubFrameComponent
.
cc
\
src
/
AutoPilotPlugins
/
APM
/
APMPowerComponent
.
cc
\
...
...
src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc
View file @
81aa4b4a
...
...
@@ -28,27 +28,29 @@
#include "APMLightsComponent.h"
#include "APMSubFrameComponent.h"
#include "ESP8266Component.h"
#include "APMHeliComponent.h"
/// This is the AutoPilotPlugin implementatin for the MAV_AUTOPILOT_ARDUPILOT type.
APMAutoPilotPlugin
::
APMAutoPilotPlugin
(
Vehicle
*
vehicle
,
QObject
*
parent
)
:
AutoPilotPlugin
(
vehicle
,
parent
)
:
AutoPilotPlugin
(
vehicle
,
parent
)
,
_incorrectParameterVersion
(
false
)
,
_airframeComponent
(
NULL
)
,
_cameraComponent
(
NULL
)
,
_lightsComponent
(
NULL
)
,
_subFrameComponent
(
NULL
)
,
_flightModesComponent
(
NULL
)
,
_powerComponent
(
NULL
)
,
_airframeComponent
(
NULL
)
,
_cameraComponent
(
NULL
)
,
_lightsComponent
(
NULL
)
,
_subFrameComponent
(
NULL
)
,
_flightModesComponent
(
NULL
)
,
_powerComponent
(
NULL
)
#if 0
// Temporarily removed, waiting for new command implementation
, _motorComponent(NULL)
, _motorComponent
(NULL)
#endif
,
_radioComponent
(
NULL
)
,
_safetyComponent
(
NULL
)
,
_sensorsComponent
(
NULL
)
,
_tuningComponent
(
NULL
)
,
_airframeFacts
(
new
APMAirframeLoader
(
this
,
vehicle
->
uas
(),
this
))
,
_esp8266Component
(
NULL
)
,
_radioComponent
(
NULL
)
,
_safetyComponent
(
NULL
)
,
_sensorsComponent
(
NULL
)
,
_tuningComponent
(
NULL
)
,
_airframeFacts
(
new
APMAirframeLoader
(
this
,
vehicle
->
uas
(),
this
))
,
_esp8266Component
(
NULL
)
,
_heliComponent
(
NULL
)
{
APMAirframeLoader
::
loadAirframeFactMetaData
();
}
...
...
@@ -101,6 +103,12 @@ const QVariantList& APMAutoPilotPlugin::vehicleComponents(void)
_safetyComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_safetyComponent
));
if
(
_vehicle
->
vehicleType
()
==
MAV_TYPE_HELICOPTER
)
{
_heliComponent
=
new
APMHeliComponent
(
_vehicle
,
this
);
_heliComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_heliComponent
));
}
_tuningComponent
=
new
APMTuningComponent
(
_vehicle
,
this
);
_tuningComponent
->
setupTriggerSignals
();
_components
.
append
(
QVariant
::
fromValue
((
VehicleComponent
*
)
_tuningComponent
));
...
...
src/AutoPilotPlugins/APM/APMAutoPilotPlugin.h
View file @
81aa4b4a
...
...
@@ -27,6 +27,7 @@ class APMCameraComponent;
class
APMLightsComponent
;
class
APMSubFrameComponent
;
class
ESP8266Component
;
class
APMHeliComponent
;
/// This is the APM specific implementation of the AutoPilot class.
class
APMAutoPilotPlugin
:
public
AutoPilotPlugin
...
...
@@ -59,6 +60,7 @@ protected:
APMTuningComponent
*
_tuningComponent
;
APMAirframeLoader
*
_airframeFacts
;
ESP8266Component
*
_esp8266Component
;
APMHeliComponent
*
_heliComponent
;
private:
QVariantList
_components
;
...
...
src/AutoPilotPlugins/APM/APMHeliComponent.cc
0 → 100644
View file @
81aa4b4a
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#include "APMHeliComponent.h"
#include "APMAutoPilotPlugin.h"
APMHeliComponent
::
APMHeliComponent
(
Vehicle
*
vehicle
,
AutoPilotPlugin
*
autopilot
,
QObject
*
parent
)
:
VehicleComponent
(
vehicle
,
autopilot
,
parent
)
,
_name
(
tr
(
"Heli"
))
{
}
QString
APMHeliComponent
::
name
(
void
)
const
{
return
_name
;
}
QString
APMHeliComponent
::
description
(
void
)
const
{
return
tr
(
"Heli Setup is used to setup parameters which are specific to a helicopter."
);
}
QString
APMHeliComponent
::
iconResource
(
void
)
const
{
return
QString
();
}
bool
APMHeliComponent
::
requiresSetup
(
void
)
const
{
return
false
;
}
bool
APMHeliComponent
::
setupComplete
(
void
)
const
{
return
true
;
}
QStringList
APMHeliComponent
::
setupCompleteChangedTriggerList
(
void
)
const
{
return
QStringList
();
}
QUrl
APMHeliComponent
::
setupSource
(
void
)
const
{
return
QStringLiteral
(
"qrc:/qml/APMHeliComponent.qml"
);
}
QUrl
APMHeliComponent
::
summaryQmlSource
(
void
)
const
{
return
QUrl
();
}
src/AutoPilotPlugins/APM/APMHeliComponent.h
0 → 100644
View file @
81aa4b4a
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#pragma once
#include "VehicleComponent.h"
class
APMHeliComponent
:
public
VehicleComponent
{
Q_OBJECT
public:
APMHeliComponent
(
Vehicle
*
vehicle
,
AutoPilotPlugin
*
autopilot
,
QObject
*
parent
=
NULL
);
// Virtuals from VehicleComponent
QStringList
setupCompleteChangedTriggerList
(
void
)
const
override
;
// Virtuals from VehicleComponent
QString
name
(
void
)
const
override
;
QString
description
(
void
)
const
override
;
QString
iconResource
(
void
)
const
override
;
bool
requiresSetup
(
void
)
const
override
;
bool
setupComplete
(
void
)
const
override
;
QUrl
setupSource
(
void
)
const
override
;
QUrl
summaryQmlSource
(
void
)
const
override
;
bool
allowSetupWhileArmed
(
void
)
const
override
{
return
true
;
}
private:
const
QString
_name
;
QVariantList
_summaryItems
;
};
src/AutoPilotPlugins/APM/APMHeliComponent.qml
0 → 100644
View file @
81aa4b4a
This diff is collapsed.
Click to expand it.
src/FactSystem/FactControls/FactCheckBox.qml
View file @
81aa4b4a
...
...
@@ -16,7 +16,5 @@ QGCCheckBox {
(
fact
.
value
===
0
?
Qt
.
Unchecked
:
Qt
.
Checked
))
:
Qt
.
Unchecked
text
:
qsTr
(
"
Label
"
)
onClicked
:
fact
.
value
=
(
checked
?
checkedValue
:
uncheckedValue
)
}
src/FirmwarePlugin/APM/APMResources.qrc
View file @
81aa4b4a
...
...
@@ -6,6 +6,7 @@
<file alias="APMCameraComponentSummary.qml">../../AutoPilotPlugins/APM/APMCameraComponentSummary.qml</file>
<file alias="APMFlightModesComponent.qml">../../AutoPilotPlugins/APM/APMFlightModesComponent.qml</file>
<file alias="APMFlightModesComponentSummary.qml">../../AutoPilotPlugins/APM/APMFlightModesComponentSummary.qml</file>
<file alias="APMHeliComponent.qml">../../AutoPilotPlugins/APM/APMHeliComponent.qml</file>
<file alias="APMLightsComponent.qml">../../AutoPilotPlugins/APM/APMLightsComponent.qml</file>
<file alias="APMLightsComponentSummary.qml">../../AutoPilotPlugins/APM/APMLightsComponentSummary.qml</file>
<file alias="APMSubFrameComponent.qml">../../AutoPilotPlugins/APM/APMSubFrameComponent.qml</file>
...
...
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