Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
dc3e21f8
Commit
dc3e21f8
authored
Dec 30, 2015
by
Don Gagne
Browse files
Add Arming Checks to Safety
parent
f488f6b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AutoPilotPlugins/APM/APMSafetyComponentCopter.qml
View file @
dc3e21f8
...
...
@@ -58,6 +58,8 @@ QGCView {
property
Fact
_rtlLoitTimeFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_LOIT_TIME
"
)
property
Fact
_rtlAltFinalFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_ALT_FINAL
"
)
property
Fact
_armingCheck
:
controller
.
getParameterFact
(
-
1
,
"
ARMING_CHECK
"
)
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
ExclusiveGroup
{
id
:
fenceActionRadioGroup
}
...
...
@@ -71,9 +73,8 @@ QGCView {
Flickable
{
clip
:
true
anchors.fill
:
parent
boundsBehavior
:
Flickable
.
StopAtBounds
contentHeight
:
rtlSettings
.
y
+
rtlSettings
.
height
flickableDirection
:
Flickable
.
VerticalFlick
contentHeight
:
armingCheckSettings
.
y
+
armingCheckSettings
.
height
contentWidth
:
armingCheckSettings
.
x
+
armingCheckSettings
.
width
QGCLabel
{
id
:
failsafeLabel
...
...
@@ -447,6 +448,33 @@ QGCView {
showUnits
:
true
}
}
// Rectangle - RTL Settings
QGCLabel
{
id
:
armingCheckLabel
anchors.topMargin
:
_margins
anchors.left
:
parent
.
left
anchors.top
:
rtlSettings
.
bottom
text
:
"
Arming Checks
"
font.weight
:
Font
.
DemiBold
}
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
color
:
palette
.
windowShade
Column
{
id
:
armingCheckColumn
spacing
:
_margins
QGCLabel
{
text
:
"
Be very careful when turning off arming checks. Could lead to loss of Vehicle control.
"
}
FactBitmask
{
fact
:
_armingCheck
}
}
}
}
// Flickable
}
// QGCViewPanel
}
// QGCView
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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