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
811ab74e
Commit
811ab74e
authored
Jun 07, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small screen fixes
parent
c99edca4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
579 additions
and
561 deletions
+579
-561
APMSafetyComponentCopter.qml
src/AutoPilotPlugins/APM/APMSafetyComponentCopter.qml
+432
-415
APMSafetyComponentPlane.qml
src/AutoPilotPlugins/APM/APMSafetyComponentPlane.qml
+146
-145
FactBitmask.qml
src/FactSystem/FactControls/FactBitmask.qml
+1
-1
No files found.
src/AutoPilotPlugins/APM/APMSafetyComponentCopter.qml
View file @
811ab74e
...
...
@@ -49,6 +49,7 @@ QGCView {
property
Fact
_armingCheck
:
controller
.
getParameterFact
(
-
1
,
"
ARMING_CHECK
"
)
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
property
bool
_showIcon
:
!
ScreenTools
.
isTinyScreen
ExclusiveGroup
{
id
:
fenceActionRadioGroup
}
ExclusiveGroup
{
id
:
landLoiterRadioGroup
}
...
...
@@ -61,8 +62,16 @@ QGCView {
QGCFlickable
{
clip
:
true
anchors.fill
:
parent
contentHeight
:
armingCheckSettings
.
y
+
armingCheckSettings
.
height
contentWidth
:
armingCheckSettings
.
x
+
armingCheckSettings
.
width
contentHeight
:
flowLayout
.
height
contentWidth
:
flowLayout
.
width
Flow
{
id
:
flowLayout
width
:
panel
.
width
// parent.width doesn't work for some reason
spacing
:
_margins
Column
{
spacing
:
_margins
/
2
QGCLabel
{
id
:
failsafeLabel
...
...
@@ -72,10 +81,6 @@ QGCView {
Rectangle
{
id
:
failsafeSettings
anchors.topMargin
:
_margins
/
2
anchors.rightMargin
:
_margins
anchors.left
:
parent
.
left
anchors.top
:
failsafeLabel
.
bottom
width
:
throttleEnableCombo
.
x
+
throttleEnableCombo
.
width
+
_margins
height
:
mahField
.
y
+
mahField
.
height
+
_margins
color
:
palette
.
windowShade
...
...
@@ -197,23 +202,21 @@ QGCView {
showUnits
:
true
}
}
// Rectangle - Failsafe Settings
}
// Column - Failsafe Settings
Column
{
spacing
:
_margins
/
2
QGCLabel
{
id
:
geoFenceLabel
anchors.leftMargin
:
_margins
anchors.left
:
failsafeSettings
.
right
anchors.top
:
parent
.
top
text
:
qsTr
(
"
GeoFence
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
Rectangle
{
id
:
geoFenceSettings
anchors.topMargin
:
_margins
/
2
anchors.left
:
geoFenceLabel
.
left
anchors.top
:
geoFenceLabel
.
bottom
anchors.bottom
:
failsafeSettings
.
bottom
width
:
fenceAltMaxField
.
x
+
fenceAltMaxField
.
width
+
_margins
height
:
fenceAltMaxField
.
y
+
fenceAltMaxField
.
height
+
_margins
color
:
palette
.
windowShade
QGCCheckBox
{
...
...
@@ -323,20 +326,19 @@ QGCView {
showUnits
:
true
}
}
// Rectangle - GeoFence Settings
}
// Column - GeoFence Settings
Column
{
spacing
:
_margins
/
2
QGCLabel
{
id
:
rtlLabel
anchors.topMargin
:
_margins
anchors.top
:
geoFenceSettings
.
bottom
text
:
qsTr
(
"
Return to Launch
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
Rectangle
{
id
:
rtlSettings
anchors.topMargin
:
_margins
/
2
anchors.left
:
parent
.
left
anchors.top
:
rtlLabel
.
bottom
width
:
rltAltFinalField
.
x
+
rltAltFinalField
.
width
+
_margins
height
:
rltAltFinalField
.
y
+
rltAltFinalField
.
height
+
_margins
color
:
palette
.
windowShade
...
...
@@ -359,13 +361,14 @@ QGCView {
anchors.fill
:
icon
source
:
icon
color
:
palette
.
text
visible
:
_showIcon
}
QGCRadioButton
{
id
:
returnAtCurrentRadio
anchors.leftMargin
:
_margins
anchors.left
:
icon
.
righ
t
anchors.top
:
icon
.
top
anchors.margins
:
_margins
anchors.left
:
_showIcon
?
icon
.
right
:
parent
.
lef
t
anchors.top
:
parent
.
top
text
:
qsTr
(
"
Return at current altitude
"
)
checked
:
_rtlAltFact
.
value
==
0
exclusiveGroup
:
returnAltRadioGroup
...
...
@@ -456,33 +459,47 @@ QGCView {
showUnits
:
true
}
}
// Rectangle - RTL Settings
}
// Column - RTL Settings
Column
{
spacing
:
_margins
/
2
QGCLabel
{
id
:
armingCheckLabel
anchors.topMargin
:
_margins
anchors.left
:
parent
.
left
anchors.top
:
rtlSettings
.
bottom
text
:
qsTr
(
"
Arming Checks
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
Rectangle
{
id
:
armingCheckSettings
anchors.topMargin
:
_margins
/
2
anchors.left
:
parent
.
left
anchors.top
:
armingCheckLabel
.
bottom
width
:
armingCheckColumn
.
x
+
armingCheckColumn
.
width
+
_margins
height
:
armingCheckColumn
.
y
+
armingCheckColumn
.
height
+
_margins
width
:
flowLayout
.
width
height
:
armingCheckInnerColumn
.
height
+
(
_margins
*
2
)
color
:
palette
.
windowShade
Column
{
id
:
armingCheckColumn
id
:
armingCheckInnerColumn
anchors.margins
:
_margins
anchors.top
:
parent
.
top
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
spacing
:
_margins
QGCLabel
{
text
:
qsTr
(
"
Be very careful when turning off arming checks. Could lead to loss of Vehicle control.
"
)
}
FactBitmask
{
fact
:
_armingCheck
}
QGCLabel
{
id
:
armingCheckWarning
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
wrapMode
:
Text
.
WordWrap
text
:
qsTr
(
"
Turning off arming checks can lead to loss of Vehicle control.
"
)
}
FactBitmask
{
id
:
armingCheckBitmask
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
fact
:
_armingCheck
}
}
}
// Rectangle - Arming checks
}
// Column - Arming Checks
}
// Flow
}
// QGCFlickable
}
// QGCViewPanel
}
// QGCView
src/AutoPilotPlugins/APM/APMSafetyComponentPlane.qml
View file @
811ab74e
...
...
@@ -46,21 +46,23 @@ QGCView {
QGCFlickable
{
clip
:
true
anchors.fill
:
parent
contentHeight
:
rtlSettings
.
y
+
rtlSettings
.
height
flickableDirection
:
Flickable
.
VerticalFlick
contentWidth
:
flowLayout
.
width
contentHeight
:
flowLayout
.
height
Flow
{
id
:
flowLayout
width
:
panel
.
width
// parent.width doesn't work for some reason
spacing
:
_margins
Column
{
spacing
:
_margins
/
2
QGCLabel
{
id
:
failsafeTriggersLabel
text
:
qsTr
(
"
Failsafe Triggers
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
Rectangle
{
id
:
failsafeTriggerSettings
anchors.topMargin
:
_margins
/
2
anchors.rightMargin
:
_margins
anchors.left
:
parent
.
left
anchors.top
:
failsafeTriggersLabel
.
bottom
width
:
throttlePWMField
.
x
+
throttlePWMField
.
width
+
_margins
height
:
gcsCheckbox
.
y
+
gcsCheckbox
.
height
+
_margins
color
:
palette
.
windowShade
...
...
@@ -139,22 +141,19 @@ QGCView {
onClicked
:
_failsafeGCSEnable
.
value
=
checked
?
1
:
0
}
}
// Rectangle - Failsafe trigger settings
}
// Column - Failsafe trigger settings
Column
{
spacing
:
_margins
/
2
QGCLabel
{
id
:
rtlLabel
anchors.leftMargin
:
_margins
anchors.left
:
failsafeTriggerSettings
.
right
text
:
qsTr
(
"
Return to Launch
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
Rectangle
{
id
:
rtlSettings
anchors.topMargin
:
_margins
/
2
anchors.left
:
rtlLabel
.
left
anchors.top
:
rtlLabel
.
bottom
anchors.bottom
:
failsafeTriggerSettings
.
bottom
width
:
rltAltField
.
x
+
rltAltField
.
width
+
_margins
height
:
rltAltField
.
y
+
rltAltField
.
height
+
_margins
color
:
palette
.
windowShade
QGCRadioButton
{
...
...
@@ -191,6 +190,8 @@ QGCView {
enabled
:
returnAltRadio
.
checked
}
}
// Rectangle - RTL Settings
}
// Column - RTL Settings
}
// Flow
}
// QGCFlickable
}
// QGCViewPanel
}
// QGCView
src/FactSystem/FactControls/FactBitmask.qml
View file @
811ab74e
...
...
@@ -6,7 +6,7 @@ import QGroundControl.Palette 1.0
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
ScreenTools
1.0
R
ow
{
Fl
ow
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
property
Fact
fact
:
Fact
{
}
...
...
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