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
185b0063
Commit
185b0063
authored
Apr 30, 2018
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rework to better match main Safety Panel ui
parent
8962f261
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
18 deletions
+36
-18
SafetyComponentSummary.qml
src/AutoPilotPlugins/PX4/SafetyComponentSummary.qml
+36
-18
No files found.
src/AutoPilotPlugins/PX4/SafetyComponentSummary.qml
View file @
185b0063
...
...
@@ -14,46 +14,64 @@ FactPanel {
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
enabled
}
FactPanelController
{
id
:
controller
;
factPanel
:
panel
}
property
Fact
returnAltFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_RETURN_ALT
"
)
property
Fact
descendAltFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_DESCEND_ALT
"
)
property
Fact
landDelayFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_LAND_DELAY
"
)
property
Fact
commRCLossFact
:
controller
.
getParameterFact
(
-
1
,
"
COM_RC_LOSS_T
"
)
property
Fact
lowBattAction
:
controller
.
getParameterFact
(
-
1
,
"
COM_LOW_BAT_ACT
"
)
property
Fact
rcLossAction
:
controller
.
getParameterFact
(
-
1
,
"
NAV_RCL_ACT
"
)
property
Fact
dataLossAction
:
controller
.
getParameterFact
(
-
1
,
"
NAV_DLL_ACT
"
)
property
Fact
returnAltFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_RETURN_ALT
"
)
property
Fact
_descendAltFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_DESCEND_ALT
"
)
property
Fact
landDelayFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_LAND_DELAY
"
)
property
Fact
commRCLossFact
:
controller
.
getParameterFact
(
-
1
,
"
COM_RC_LOSS_T
"
)
property
Fact
lowBattAction
:
controller
.
getParameterFact
(
-
1
,
"
COM_LOW_BAT_ACT
"
)
property
Fact
rcLossAction
:
controller
.
getParameterFact
(
-
1
,
"
NAV_RCL_ACT
"
)
property
Fact
dataLossAction
:
controller
.
getParameterFact
(
-
1
,
"
NAV_DLL_ACT
"
)
property
Fact
_rtlLandDelayFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_LAND_DELAY
"
)
property
int
_rtlLandDelayValue
:
_rtlLandDelayFact
.
value
Column
{
anchors.fill
:
parent
VehicleSummaryRow
{
labelText
:
qsTr
(
"
RTL min alt:
"
)
valueText
:
returnAltFact
?
returnAltFact
.
valueString
+
"
"
+
returnAltFact
.
units
:
""
labelText
:
qsTr
(
"
Low Battery Failsafe
"
)
valueText
:
lowBattAction
?
lowBattAction
.
enumStringValue
:
""
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
R
TL home alt:
"
)
valueText
:
descendAltFact
?
descendAltFact
.
valueString
+
"
"
+
descendAltFact
.
units
:
""
labelText
:
qsTr
(
"
R
C Loss Failsafe
"
)
valueText
:
rcLossAction
?
rcLossAction
.
enumStringValue
:
""
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
RC
loss RTL:
"
)
labelText
:
qsTr
(
"
RC
Loss Timeout
"
)
valueText
:
commRCLossFact
?
commRCLossFact
.
valueString
+
"
"
+
commRCLossFact
.
units
:
""
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
RC loss action:
"
)
valueText
:
rcLossAction
?
rc
LossAction
.
enumStringValue
:
""
labelText
:
qsTr
(
"
Data Link Loss Failsafe
"
)
valueText
:
dataLossAction
?
data
LossAction
.
enumStringValue
:
""
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Link loss action:
"
)
valueText
:
dataLossAction
?
dataLossAction
.
enumStringValue
:
""
labelText
:
qsTr
(
"
RTL Climb To
"
)
valueText
:
returnAltFact
?
returnAltFact
.
valueString
+
"
"
+
returnAltFact
.
units
:
""
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Low battery action:
"
)
valueText
:
lowBattAction
?
lowBattAction
.
enumStringValue
:
""
labelText
:
qsTr
(
"
RTL, Then
"
)
valueText
:
_rtlLandDelayValue
===
0
?
qsTr
(
"
Land immediately
"
)
:
(
_rtlLandDelayValue
<
0
?
qsTr
(
"
Loiter and do not land
"
)
:
qsTr
(
"
Loiter and land after specified time
"
))
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Loiter Alt
"
)
valueText
:
_descendAltFact
.
valueString
+
"
"
+
_descendAltFact
.
units
visible
:
_rtlLandDelayValue
!==
0
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Land Delay
"
)
valueText
:
_rtlLandDelayValue
+
"
"
+
_rtlLandDelayFact
.
units
visible
:
_rtlLandDelayValue
>
0
}
}
}
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