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
7e6b14b1
Unverified
Commit
7e6b14b1
authored
Jul 05, 2019
by
Gus Grubba
Committed by
GitHub
Jul 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7564 from mavlink/airframeConfig
Airframe Setup (custom types)
parents
9812cbb9
052357fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
29 deletions
+38
-29
AirframeComponent.cc
src/AutoPilotPlugins/PX4/AirframeComponent.cc
+1
-1
AirframeComponent.qml
src/AutoPilotPlugins/PX4/AirframeComponent.qml
+37
-28
No files found.
src/AutoPilotPlugins/PX4/AirframeComponent.cc
View file @
7e6b14b1
...
...
@@ -28,7 +28,7 @@ QString AirframeComponent::name(void) const
QString
AirframeComponent
::
description
(
void
)
const
{
return
tr
(
"Airframe Setup is used to select the airframe
which
matches your vehicle. "
return
tr
(
"Airframe Setup is used to select the airframe
that
matches your vehicle. "
"This will in turn set up the various tuning values for flight parameters."
);
}
...
...
src/AutoPilotPlugins/PX4/AirframeComponent.qml
View file @
7e6b14b1
...
...
@@ -22,7 +22,43 @@ import QGroundControl.ScreenTools 1.0
SetupPage
{
id
:
airframePage
pageComponent
:
pageComponent
pageComponent
:
(
controller
&&
controller
.
showCustomConfigPanel
)
?
customFrame
:
pageComponent
AirframeComponentController
{
id
:
controller
}
Component
{
id
:
customFrame
Column
{
width
:
availableWidth
spacing
:
ScreenTools
.
defaultFontPixelHeight
*
4
Item
{
width
:
1
height
:
1
}
QGCLabel
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
width
:
parent
.
width
*
0.5
height
:
ScreenTools
.
defaultFontPixelHeight
*
4
wrapMode
:
Text
.
WordWrap
text
:
qsTr
(
"
Your vehicle is using a custom airframe configuration.
"
)
+
qsTr
(
"
This configuration can only be modified through the Parameter Editor.
\n\n
"
)
+
qsTr
(
"
If you want to reset your airframe configuration and select a standard configuration, click 'Reset' below.
"
)
}
QGCButton
{
text
:
qsTr
(
"
Reset
"
)
enabled
:
sys_autostart
anchors.horizontalCenter
:
parent
.
horizontalCenter
property
Fact
sys_autostart
:
controller
.
getParameterFact
(
-
1
,
"
SYS_AUTOSTART
"
)
onClicked
:
{
if
(
sys_autostart
)
{
sys_autostart
.
value
=
0
}
}
}
}
}
Component
{
id
:
pageComponent
...
...
@@ -61,33 +97,6 @@ SetupPage {
}
}
AirframeComponentController
{
id
:
controller
Component.onCompleted
:
{
if
(
controller
.
showCustomConfigPanel
)
{
mainWindow
.
showComponentDialog
(
customConfigDialogComponent
,
qsTr
(
"
Custom Airframe Config
"
),
mainWindow
.
showDialogDefaultWidth
,
StandardButton
.
Reset
)
}
}
}
Component
{
id
:
customConfigDialogComponent
QGCViewMessage
{
id
:
customConfigDialog
message
:
qsTr
(
"
Your vehicle is using a custom airframe configuration.
"
)
+
qsTr
(
"
This configuration can only be modified through the Parameter Editor.
\n\n
"
)
+
qsTr
(
"
If you want to reset your airframe configuration and select a standard configuration, click 'Reset' above.
"
)
property
Fact
sys_autostart
:
controller
.
getParameterFact
(
-
1
,
"
SYS_AUTOSTART
"
)
function
accept
()
{
sys_autostart
.
value
=
0
customConfigDialog
.
hideDialog
()
}
}
}
Component
{
id
:
applyRestartDialogComponent
...
...
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