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
fdfb5a3e
Commit
fdfb5a3e
authored
May 25, 2017
by
Don Gagne
Committed by
GitHub
May 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5191 from bluerobotics/sub-safety-page
Rework Sub Safety setup
parents
1ab55919
b77f0b98
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
292 additions
and
171 deletions
+292
-171
APMSafetyComponentSub.qml
src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml
+260
-147
APMSafetyComponentSummarySub.qml
src/AutoPilotPlugins/APM/APMSafetyComponentSummarySub.qml
+31
-23
APMSubFrameComponentSummary.qml
src/AutoPilotPlugins/APM/APMSubFrameComponentSummary.qml
+1
-1
No files found.
src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml
View file @
fdfb5a3e
This diff is collapsed.
Click to expand it.
src/AutoPilotPlugins/APM/APMSafetyComponentSummarySub.qml
View file @
fdfb5a3e
...
...
@@ -14,14 +14,24 @@ FactPanel {
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
enabled
}
FactPanelController
{
id
:
controller
;
factPanel
:
panel
}
property
Fact
_failsafeGCSEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_GCS_ENABLE
"
)
property
Fact
_failsafeLeakEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_LEAK_ENABLE
"
)
// Enable/Action parameters
property
Fact
_failsafeBatteryEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_BATT_ENABLE
"
)
property
Fact
_failsafeEKFEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_EKF_ACTION
"
)
property
Fact
_failsafeGCSEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_GCS_ENABLE
"
)
property
Fact
_failsafeLeakEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_LEAK_ENABLE
"
)
property
Fact
_failsafePilotEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_PILOT_INPUT
"
)
property
Fact
_failsafePressureEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_PRESS_ENABLE
"
)
property
Fact
_failsafeTemperatureEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_TEMP_ENABLE
"
)
property
Fact
_fenceAction
:
controller
.
getParameterFact
(
-
1
,
"
FENCE_ACTION
"
)
property
Fact
_fenceEnable
:
controller
.
getParameterFact
(
-
1
,
"
FENCE_ENABLE
"
)
property
Fact
_fenceType
:
controller
.
getParameterFact
(
-
1
,
"
FENCE_TYPE
"
)
property
Fact
_leakPin
:
controller
.
getParameterFact
(
-
1
,
"
LEAK1_PIN
"
)
// Threshold parameters
property
Fact
_failsafePressureThreshold
:
controller
.
getParameterFact
(
-
1
,
"
FS_PRESS_MAX
"
)
property
Fact
_failsafeTemperatureThreshold
:
controller
.
getParameterFact
(
-
1
,
"
FS_TEMP_MAX
"
)
property
Fact
_failsafePilotTimeout
:
controller
.
getParameterFact
(
-
1
,
"
FS_PILOT_TIMEOUT
"
)
property
Fact
_failsafeLeakPin
:
controller
.
getParameterFact
(
-
1
,
"
LEAK1_PIN
"
)
property
Fact
_failsafeLeakLogic
:
controller
.
getParameterFact
(
-
1
,
"
LEAK1_LOGIC
"
)
property
Fact
_failsafeEKFThreshold
:
controller
.
getParameterFact
(
-
1
,
"
FS_EKF_THRESH
"
)
property
Fact
_failsafeBatteryVoltage
:
controller
.
getParameterFact
(
-
1
,
"
FS_BATT_VOLTAGE
"
)
property
Fact
_failsafeBatteryCapacity
:
controller
.
getParameterFact
(
-
1
,
"
FS_BATT_MAH
"
)
property
Fact
_armingCheck
:
controller
.
getParameterFact
(
-
1
,
"
ARMING_CHECK
"
)
...
...
@@ -32,35 +42,33 @@ FactPanel {
labelText
:
qsTr
(
"
Arming Checks:
"
)
valueText
:
_armingCheck
.
value
&
1
?
qsTr
(
"
Enabled
"
)
:
qsTr
(
"
Some disabled
"
)
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
GCS failsafe:
"
)
valueText
:
_failsafeGCSEnable
.
enumOrValueString
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Leak failsafe:
"
)
valueText
:
_failsafeLeakEnable
.
enumOrValueString
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Leak detector
:
"
)
valueText
:
_leakPin
.
enumOrValueString
labelText
:
qsTr
(
"
Battery failsafe
:
"
)
valueText
:
_failsafeBatteryEnable
.
enumOrValueString
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
GeoFence:
"
)
valueText
:
_fenceEnable
.
value
==
0
||
_fenceType
==
0
?
qsTr
(
"
Disabled
"
)
:
(
_fenceType
.
value
==
1
?
qsTr
(
"
Depth
"
)
:
(
_fenceType
.
value
==
2
?
qsTr
(
"
Circle
"
)
:
qsTr
(
"
Depth,Circle
"
)))
labelText
:
qsTr
(
"
EKF failsafe:
"
)
valueText
:
_failsafeEKFEnable
.
enumOrValueString
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Pilot Input failsafe:
"
)
valueText
:
_failsafePilotEnable
.
enumOrValueString
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Int. Temperature failsafe:
"
)
valueText
:
_failsafeTemperatureEnable
.
enumOrValueString
}
VehicleSummaryRow
{
labelText
:
qsTr
(
"
GeoFence:
"
)
valueText
:
qsTr
(
"
Report only
"
)
visible
:
_fenceEnable
.
value
!=
0
labelText
:
qsTr
(
"
Int. Pressure failsafe:
"
)
valueText
:
_failsafePressureEnable
.
enumOrValueString
}
}
}
src/AutoPilotPlugins/APM/APMSubFrameComponentSummary.qml
View file @
fdfb5a3e
...
...
@@ -51,7 +51,7 @@ FactPanel {
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Firmware Version:
"
)
valueText
:
activeVehicle
.
firmwareMajorVersion
==
-
1
?
qsTr
(
"
Unknown
"
)
:
activeVehicle
.
firmwareMajorVersion
+
"
.
"
+
activeVehicle
.
firmwareMinorVersion
+
"
.
"
+
activeVehicle
.
firmwarePatchVersion
+
"
-
"
+
activeVehicle
.
firmwareVersionTypeString
valueText
:
activeVehicle
.
firmwareMajorVersion
==
-
1
?
qsTr
(
"
Unknown
"
)
:
activeVehicle
.
firmwareMajorVersion
+
"
.
"
+
activeVehicle
.
firmwareMinorVersion
+
"
.
"
+
activeVehicle
.
firmwarePatchVersion
+
"
"
+
activeVehicle
.
firmwareVersionTypeString
}
VehicleSummaryRow
{
...
...
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