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