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
e28694db
Unverified
Commit
e28694db
authored
Apr 30, 2018
by
Don Gagne
Committed by
GitHub
Apr 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6397 from DonLakeFlyer/SafetySummary
Safety summary: Rework to better match Safety Page
parents
00e49321
ba46fc0e
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
102 additions
and
84 deletions
+102
-84
APMAirframeComponentSummary.qml
src/AutoPilotPlugins/APM/APMAirframeComponentSummary.qml
+4
-4
APMCameraComponentSummary.qml
src/AutoPilotPlugins/APM/APMCameraComponentSummary.qml
+4
-4
APMFlightModesComponentSummary.qml
src/AutoPilotPlugins/APM/APMFlightModesComponentSummary.qml
+6
-6
APMLightsComponentSummary.qml
src/AutoPilotPlugins/APM/APMLightsComponentSummary.qml
+2
-2
APMPowerComponentSummary.qml
src/AutoPilotPlugins/APM/APMPowerComponentSummary.qml
+2
-2
APMRadioComponentSummary.qml
src/AutoPilotPlugins/APM/APMRadioComponentSummary.qml
+4
-4
APMSensorsComponentSummary.qml
src/AutoPilotPlugins/APM/APMSensorsComponentSummary.qml
+2
-2
APMSubFrameComponentSummary.qml
src/AutoPilotPlugins/APM/APMSubFrameComponentSummary.qml
+3
-3
ESP8266ComponentSummary.qml
src/AutoPilotPlugins/Common/ESP8266ComponentSummary.qml
+8
-8
AirframeComponentSummary.qml
src/AutoPilotPlugins/PX4/AirframeComponentSummary.qml
+4
-4
CameraComponentSummary.qml
src/AutoPilotPlugins/PX4/CameraComponentSummary.qml
+6
-6
FlightModesComponentSummary.qml
src/AutoPilotPlugins/PX4/FlightModesComponentSummary.qml
+6
-6
PX4RadioComponentSummary.qml
src/AutoPilotPlugins/PX4/PX4RadioComponentSummary.qml
+7
-7
PowerComponentSummary.qml
src/AutoPilotPlugins/PX4/PowerComponentSummary.qml
+3
-3
SafetyComponentSummary.qml
src/AutoPilotPlugins/PX4/SafetyComponentSummary.qml
+36
-18
SensorsComponentSummary.qml
src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml
+5
-5
No files found.
src/AutoPilotPlugins/APM/APMAirframeComponentSummary.qml
View file @
e28694db
...
@@ -27,27 +27,27 @@ FactPanel {
...
@@ -27,27 +27,27 @@ FactPanel {
anchors.fill
:
parent
anchors.fill
:
parent
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Frame Type
:
"
)
labelText
:
qsTr
(
"
Frame Type
"
)
valueText
:
controller
.
currentAirframeTypeName
()
+
"
"
+
_oldFrameParam
.
enumStringValue
valueText
:
controller
.
currentAirframeTypeName
()
+
"
"
+
_oldFrameParam
.
enumStringValue
visible
:
_useOldFrameParam
visible
:
_useOldFrameParam
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Frame Class
:
"
)
labelText
:
qsTr
(
"
Frame Class
"
)
valueText
:
_newFrameParam
.
enumStringValue
valueText
:
_newFrameParam
.
enumStringValue
visible
:
!
_useOldFrameParam
visible
:
!
_useOldFrameParam
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Frame Type
:
"
)
labelText
:
qsTr
(
"
Frame Type
"
)
valueText
:
_frameTypeParam
.
enumStringValue
valueText
:
_frameTypeParam
.
enumStringValue
visible
:
!
_useOldFrameParam
visible
:
!
_useOldFrameParam
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Firmware Version
:
"
)
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
}
}
}
}
...
...
src/AutoPilotPlugins/APM/APMCameraComponentSummary.qml
View file @
e28694db
...
@@ -27,22 +27,22 @@ FactPanel {
...
@@ -27,22 +27,22 @@ FactPanel {
VehicleSummaryRow
{
VehicleSummaryRow
{
visible
:
_mountTypeExists
visible
:
_mountTypeExists
labelText
:
qsTr
(
"
Gimbal type
:
"
)
labelText
:
qsTr
(
"
Gimbal type
"
)
valueText
:
_mountTypeValue
valueText
:
_mountTypeValue
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Tilt input channel
:
"
)
labelText
:
qsTr
(
"
Tilt input channel
"
)
valueText
:
_mountRCInTilt
.
enumStringValue
valueText
:
_mountRCInTilt
.
enumStringValue
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Pan input channel
:
"
)
labelText
:
qsTr
(
"
Pan input channel
"
)
valueText
:
_mountRCInPan
.
enumStringValue
valueText
:
_mountRCInPan
.
enumStringValue
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Roll input channel
:
"
)
labelText
:
qsTr
(
"
Roll input channel
"
)
valueText
:
_mountRCInRoll
.
enumStringValue
valueText
:
_mountRCInRoll
.
enumStringValue
}
}
}
}
...
...
src/AutoPilotPlugins/APM/APMFlightModesComponentSummary.qml
View file @
e28694db
...
@@ -27,32 +27,32 @@ FactPanel {
...
@@ -27,32 +27,32 @@ FactPanel {
anchors.fill
:
parent
anchors.fill
:
parent
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Flight Mode 1
:
"
)
labelText
:
qsTr
(
"
Flight Mode 1
"
)
valueText
:
flightMode1
.
enumStringValue
valueText
:
flightMode1
.
enumStringValue
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Flight Mode 2
:
"
)
labelText
:
qsTr
(
"
Flight Mode 2
"
)
valueText
:
flightMode2
.
enumStringValue
valueText
:
flightMode2
.
enumStringValue
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Flight Mode 3
:
"
)
labelText
:
qsTr
(
"
Flight Mode 3
"
)
valueText
:
flightMode3
.
enumStringValue
valueText
:
flightMode3
.
enumStringValue
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Flight Mode 4
:
"
)
labelText
:
qsTr
(
"
Flight Mode 4
"
)
valueText
:
flightMode4
.
enumStringValue
valueText
:
flightMode4
.
enumStringValue
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Flight Mode 5
:
"
)
labelText
:
qsTr
(
"
Flight Mode 5
"
)
valueText
:
flightMode5
.
enumStringValue
valueText
:
flightMode5
.
enumStringValue
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Flight Mode 6
:
"
)
labelText
:
qsTr
(
"
Flight Mode 6
"
)
valueText
:
flightMode6
.
enumStringValue
valueText
:
flightMode6
.
enumStringValue
}
}
}
}
...
...
src/AutoPilotPlugins/APM/APMLightsComponentSummary.qml
View file @
e28694db
...
@@ -89,12 +89,12 @@ FactPanel {
...
@@ -89,12 +89,12 @@ FactPanel {
anchors.fill
:
parent
anchors.fill
:
parent
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Lights Output 1
:
"
)
labelText
:
qsTr
(
"
Lights Output 1
"
)
valueText
:
lightsOutModel
.
get
(
lightsLoader
.
lights1OutIndex
).
text
valueText
:
lightsOutModel
.
get
(
lightsLoader
.
lights1OutIndex
).
text
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Lights Output 2
:
"
)
labelText
:
qsTr
(
"
Lights Output 2
"
)
valueText
:
lightsOutModel
.
get
(
lightsLoader
.
lights2OutIndex
).
text
valueText
:
lightsOutModel
.
get
(
lightsLoader
.
lights2OutIndex
).
text
}
}
}
}
...
...
src/AutoPilotPlugins/APM/APMPowerComponentSummary.qml
View file @
e28694db
...
@@ -31,12 +31,12 @@ FactPanel {
...
@@ -31,12 +31,12 @@ FactPanel {
anchors.fill
:
parent
anchors.fill
:
parent
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Battery monitor
:
"
)
labelText
:
qsTr
(
"
Battery monitor
"
)
valueText
:
battMonitor
.
enumStringValue
valueText
:
battMonitor
.
enumStringValue
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Battery capacity
:
"
)
labelText
:
qsTr
(
"
Battery capacity
"
)
valueText
:
battCapacity
.
valueString
+
"
"
+
battCapacity
.
units
valueText
:
battCapacity
.
valueString
+
"
"
+
battCapacity
.
units
}
}
}
}
...
...
src/AutoPilotPlugins/APM/APMRadioComponentSummary.qml
View file @
e28694db
...
@@ -23,22 +23,22 @@ FactPanel {
...
@@ -23,22 +23,22 @@ FactPanel {
anchors.fill
:
parent
anchors.fill
:
parent
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Roll
:
"
)
labelText
:
qsTr
(
"
Roll
"
)
valueText
:
mapRollFact
.
value
==
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Channel %1
"
).
arg
(
mapRollFact
.
valueString
)
valueText
:
mapRollFact
.
value
==
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Channel %1
"
).
arg
(
mapRollFact
.
valueString
)
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Pitch
:
"
)
labelText
:
qsTr
(
"
Pitch
"
)
valueText
:
mapPitchFact
.
value
==
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Channel %1
"
).
arg
(
mapPitchFact
.
valueString
)
valueText
:
mapPitchFact
.
value
==
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Channel %1
"
).
arg
(
mapPitchFact
.
valueString
)
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Yaw
:
"
)
labelText
:
qsTr
(
"
Yaw
"
)
valueText
:
mapYawFact
.
value
==
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Channel %1
"
).
arg
(
mapYawFact
.
valueString
)
valueText
:
mapYawFact
.
value
==
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Channel %1
"
).
arg
(
mapYawFact
.
valueString
)
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Throttle
:
"
)
labelText
:
qsTr
(
"
Throttle
"
)
valueText
:
mapThrottleFact
.
value
==
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Channel %1
"
).
arg
(
mapThrottleFact
.
valueString
)
valueText
:
mapThrottleFact
.
value
==
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Channel %1
"
).
arg
(
mapThrottleFact
.
valueString
)
}
}
}
}
...
...
src/AutoPilotPlugins/APM/APMSensorsComponentSummary.qml
View file @
e28694db
...
@@ -34,7 +34,7 @@ FactPanel {
...
@@ -34,7 +34,7 @@ FactPanel {
model
:
3
model
:
3
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Compass
"
)
+
(
index
+
1
)
+
"
:
"
labelText
:
qsTr
(
"
Compass
"
)
+
(
index
+
1
)
+
""
valueText
:
sensorParams
.
rgCompassAvailable
[
index
]
?
valueText
:
sensorParams
.
rgCompassAvailable
[
index
]
?
(
sensorParams
.
rgCompassCalibrated
[
index
]
?
(
sensorParams
.
rgCompassCalibrated
[
index
]
?
(
sensorParams
.
rgCompassPrimary
[
index
]
?
"
Primary
"
:
"
Secondary
"
)
+
(
sensorParams
.
rgCompassPrimary
[
index
]
?
"
Primary
"
:
"
Secondary
"
)
+
...
@@ -47,7 +47,7 @@ FactPanel {
...
@@ -47,7 +47,7 @@ FactPanel {
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Accelerometer(s)
:
"
)
labelText
:
qsTr
(
"
Accelerometer(s)
"
)
valueText
:
controller
.
accelSetupNeeded
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Ready
"
)
valueText
:
controller
.
accelSetupNeeded
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Ready
"
)
}
}
}
}
...
...
src/AutoPilotPlugins/APM/APMSubFrameComponentSummary.qml
View file @
e28694db
...
@@ -45,17 +45,17 @@ FactPanel {
...
@@ -45,17 +45,17 @@ FactPanel {
anchors.fill
:
parent
anchors.fill
:
parent
VehicleSummaryRow
{
VehicleSummaryRow
{
id
:
nameRow
;
id
:
nameRow
;
labelText
:
qsTr
(
"
Frame Type
:
"
)
labelText
:
qsTr
(
"
Frame Type
"
)
valueText
:
frameName
()
valueText
:
frameName
()
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Firmware Version
:
"
)
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
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Git Revision
:
"
)
labelText
:
qsTr
(
"
Git Revision
"
)
valueText
:
activeVehicle
.
gitHash
==
-
1
?
qsTr
(
"
Unknown
"
)
:
activeVehicle
.
gitHash
valueText
:
activeVehicle
.
gitHash
==
-
1
?
qsTr
(
"
Unknown
"
)
:
activeVehicle
.
gitHash
}
}
}
}
...
...
src/AutoPilotPlugins/Common/ESP8266ComponentSummary.qml
View file @
e28694db
...
@@ -30,38 +30,38 @@ FactPanel {
...
@@ -30,38 +30,38 @@ FactPanel {
Column
{
Column
{
anchors.fill
:
parent
anchors.fill
:
parent
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Firmware Version
:
"
)
labelText
:
qsTr
(
"
Firmware Version
"
)
valueText
:
esp8266
.
version
valueText
:
esp8266
.
version
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
WiFi Mode
:
"
)
labelText
:
qsTr
(
"
WiFi Mode
"
)
valueText
:
wifiMode
?
(
wifiMode
.
value
===
0
?
"
AP Mode
"
:
"
Station Mode
"
)
:
"
AP Mode
"
valueText
:
wifiMode
?
(
wifiMode
.
value
===
0
?
"
AP Mode
"
:
"
Station Mode
"
)
:
"
AP Mode
"
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
WiFi Channel
:
"
)
labelText
:
qsTr
(
"
WiFi Channel
"
)
valueText
:
wifiChannel
?
wifiChannel
.
valueString
:
""
valueText
:
wifiChannel
?
wifiChannel
.
valueString
:
""
visible
:
wifiMode
?
wifiMode
.
value
===
0
:
true
visible
:
wifiMode
?
wifiMode
.
value
===
0
:
true
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
WiFi AP SSID
:
"
)
labelText
:
qsTr
(
"
WiFi AP SSID
"
)
valueText
:
esp8266
.
wifiSSID
valueText
:
esp8266
.
wifiSSID
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
WiFi AP Password
:
"
)
labelText
:
qsTr
(
"
WiFi AP Password
"
)
valueText
:
esp8266
.
wifiPassword
valueText
:
esp8266
.
wifiPassword
}
}
/* Too much info makes it all crammed
/* Too much info makes it all crammed
VehicleSummaryRow {
VehicleSummaryRow {
labelText: qsTr("WiFi STA SSID
:
")
labelText: qsTr("WiFi STA SSID")
valueText: esp8266.wifiSSIDSta
valueText: esp8266.wifiSSIDSta
}
}
VehicleSummaryRow {
VehicleSummaryRow {
labelText: qsTr("WiFi STA Password
:
")
labelText: qsTr("WiFi STA Password")
valueText: esp8266.wifiPasswordSta
valueText: esp8266.wifiPasswordSta
}
}
*/
*/
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
UART Baud Rate
:
"
)
labelText
:
qsTr
(
"
UART Baud Rate
"
)
valueText
:
uartBaud
?
uartBaud
.
valueString
:
""
valueText
:
uartBaud
?
uartBaud
.
valueString
:
""
}
}
}
}
...
...
src/AutoPilotPlugins/PX4/AirframeComponentSummary.qml
View file @
e28694db
...
@@ -23,20 +23,20 @@ FactPanel {
...
@@ -23,20 +23,20 @@ FactPanel {
Column
{
Column
{
anchors.fill
:
parent
anchors.fill
:
parent
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
System ID
:
"
)
labelText
:
qsTr
(
"
System ID
"
)
valueText
:
sysIdFact
?
sysIdFact
.
valueString
:
""
valueText
:
sysIdFact
?
sysIdFact
.
valueString
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Airframe type
:
"
)
labelText
:
qsTr
(
"
Airframe type
"
)
valueText
:
autoStartSet
?
controller
.
currentAirframeType
:
qsTr
(
"
Setup required
"
)
valueText
:
autoStartSet
?
controller
.
currentAirframeType
:
qsTr
(
"
Setup required
"
)
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Vehicle
:
"
)
labelText
:
qsTr
(
"
Vehicle
"
)
valueText
:
autoStartSet
?
controller
.
currentVehicleName
:
qsTr
(
"
Setup required
"
)
valueText
:
autoStartSet
?
controller
.
currentVehicleName
:
qsTr
(
"
Setup required
"
)
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Firmware Version
:
"
)
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
}
}
}
}
...
...
src/AutoPilotPlugins/PX4/CameraComponentSummary.qml
View file @
e28694db
...
@@ -25,36 +25,36 @@ FactPanel {
...
@@ -25,36 +25,36 @@ FactPanel {
anchors.fill
:
parent
anchors.fill
:
parent
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Trigger interface
:
"
)
labelText
:
qsTr
(
"
Trigger interface
"
)
valueText
:
_camTriggerInterface
?
_camTriggerInterface
.
enumStringValue
:
""
valueText
:
_camTriggerInterface
?
_camTriggerInterface
.
enumStringValue
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Trigger mode
:
"
)
labelText
:
qsTr
(
"
Trigger mode
"
)
valueText
:
_camTriggerMode
?
_camTriggerMode
.
enumStringValue
:
""
valueText
:
_camTriggerMode
?
_camTriggerMode
.
enumStringValue
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
visible
:
_timeInterval
&&
_camTriggerMode
.
value
===
2
visible
:
_timeInterval
&&
_camTriggerMode
.
value
===
2
labelText
:
qsTr
(
"
Time interval
:
"
)
labelText
:
qsTr
(
"
Time interval
"
)
valueText
:
_timeInterval
?
_timeInterval
.
value
:
""
valueText
:
_timeInterval
?
_timeInterval
.
value
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
visible
:
_distanceInterval
&&
_camTriggerMode
.
value
===
3
visible
:
_distanceInterval
&&
_camTriggerMode
.
value
===
3
labelText
:
qsTr
(
"
Distance interval
:
"
)
labelText
:
qsTr
(
"
Distance interval
"
)
valueText
:
_distanceInterval
?
_distanceInterval
.
value
:
""
valueText
:
_distanceInterval
?
_distanceInterval
.
value
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
visible
:
_auxPins
visible
:
_auxPins
labelText
:
qsTr
(
"
AUX pins
:
"
)
labelText
:
qsTr
(
"
AUX pins
"
)
valueText
:
_auxPins
?
_auxPins
.
value
:
""
valueText
:
_auxPins
?
_auxPins
.
value
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
visible
:
_camTriggerPol
visible
:
_camTriggerPol
labelText
:
qsTr
(
"
AUX pin polarity
:
"
)
labelText
:
qsTr
(
"
AUX pin polarity
"
)
valueText
:
_camTriggerPol
?
(
_camTriggerPol
.
value
?
"
High (3.3V)
"
:
"
Low (0V)
"
)
:
""
valueText
:
_camTriggerPol
?
(
_camTriggerPol
.
value
?
"
High (3.3V)
"
:
"
Low (0V)
"
)
:
""
}
}
...
...
src/AutoPilotPlugins/PX4/FlightModesComponentSummary.qml
View file @
e28694db
...
@@ -29,13 +29,13 @@ FactPanel {
...
@@ -29,13 +29,13 @@ FactPanel {
id
:
simple
id
:
simple
Column
{
Column
{
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Mode switch
:
"
)
labelText
:
qsTr
(
"
Mode switch
"
)
valueText
:
_rcMapFltmode
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
_rcMapFltmode
.
enumStringValue
valueText
:
_rcMapFltmode
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
_rcMapFltmode
.
enumStringValue
}
}
Repeater
{
Repeater
{
model
:
6
model
:
6
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Flight Mode %1
:
"
).
arg
(
index
+
1
)
labelText
:
qsTr
(
"
Flight Mode %1
"
).
arg
(
index
+
1
)
valueText
:
controller
.
getParameterFact
(
-
1
,
"
COM_FLTMODE
"
+
(
index
+
1
)).
enumStringValue
valueText
:
controller
.
getParameterFact
(
-
1
,
"
COM_FLTMODE
"
+
(
index
+
1
)).
enumStringValue
}
}
}
}
...
@@ -49,19 +49,19 @@ FactPanel {
...
@@ -49,19 +49,19 @@ FactPanel {
property
Fact
loiterSwFact
:
controller
.
getParameterFact
(
-
1
,
"
RC_MAP_LOITER_SW
"
)
property
Fact
loiterSwFact
:
controller
.
getParameterFact
(
-
1
,
"
RC_MAP_LOITER_SW
"
)
property
Fact
returnSwFact
:
controller
.
getParameterFact
(
-
1
,
"
RC_MAP_RETURN_SW
"
)
property
Fact
returnSwFact
:
controller
.
getParameterFact
(
-
1
,
"
RC_MAP_RETURN_SW
"
)
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Mode switch
:
"
)
labelText
:
qsTr
(
"
Mode switch
"
)
valueText
:
_rcMapModeSw
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
_rcMapModeSw
.
valueString
valueText
:
_rcMapModeSw
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
_rcMapModeSw
.
valueString
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Position Ctl switch
:
"
)
labelText
:
qsTr
(
"
Position Ctl switch
"
)
valueText
:
posCtlSwFact
.
value
===
0
?
qsTr
(
"
Disabled
"
)
:
posCtlSwFact
.
valueString
valueText
:
posCtlSwFact
.
value
===
0
?
qsTr
(
"
Disabled
"
)
:
posCtlSwFact
.
valueString
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Loiter switch
:
"
)
labelText
:
qsTr
(
"
Loiter switch
"
)
valueText
:
loiterSwFact
.
value
===
0
?
qsTr
(
"
Disabled
"
)
:
loiterSwFact
.
valueString
valueText
:
loiterSwFact
.
value
===
0
?
qsTr
(
"
Disabled
"
)
:
loiterSwFact
.
valueString
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Return switch
:
"
)
labelText
:
qsTr
(
"
Return switch
"
)
valueText
:
returnSwFact
.
value
===
0
?
qsTr
(
"
Disabled
"
)
:
returnSwFact
.
valueString
valueText
:
returnSwFact
.
value
===
0
?
qsTr
(
"
Disabled
"
)
:
returnSwFact
.
valueString
}
}
}
}
...
...
src/AutoPilotPlugins/PX4/PX4RadioComponentSummary.qml
View file @
e28694db
...
@@ -26,38 +26,38 @@ FactPanel {
...
@@ -26,38 +26,38 @@ FactPanel {
anchors.fill
:
parent
anchors.fill
:
parent
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Roll
:
"
)
labelText
:
qsTr
(
"
Roll
"
)
valueText
:
mapRollFact
?
(
mapRollFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
mapRollFact
.
valueString
)
:
""
valueText
:
mapRollFact
?
(
mapRollFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
mapRollFact
.
valueString
)
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Pitch
:
"
)
labelText
:
qsTr
(
"
Pitch
"
)
valueText
:
mapPitchFact
?
(
mapPitchFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
mapPitchFact
.
valueString
)
:
""
valueText
:
mapPitchFact
?
(
mapPitchFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
mapPitchFact
.
valueString
)
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Yaw
:
"
)
labelText
:
qsTr
(
"
Yaw
"
)
valueText
:
mapYawFact
?
(
mapYawFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
mapYawFact
.
valueString
)
:
""
valueText
:
mapYawFact
?
(
mapYawFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
mapYawFact
.
valueString
)
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Throttle
:
"
)
labelText
:
qsTr
(
"
Throttle
"
)
valueText
:
mapThrottleFact
?
(
mapThrottleFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
mapThrottleFact
.
valueString
)
:
""
valueText
:
mapThrottleFact
?
(
mapThrottleFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
mapThrottleFact
.
valueString
)
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Flaps
:
"
)
labelText
:
qsTr
(
"
Flaps
"
)
valueText
:
mapFlapsFact
?
(
mapFlapsFact
.
value
===
0
?
qsTr
(
"
Disabled
"
)
:
mapFlapsFact
.
valueString
)
:
""
valueText
:
mapFlapsFact
?
(
mapFlapsFact
.
value
===
0
?
qsTr
(
"
Disabled
"
)
:
mapFlapsFact
.
valueString
)
:
""
visible
:
!
controller
.
vehicle
.
multiRotor
visible
:
!
controller
.
vehicle
.
multiRotor
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Aux1
:
"
)
labelText
:
qsTr
(
"
Aux1
"
)
valueText
:
mapAux1Fact
?
(
mapAux1Fact
.
value
===
0
?
qsTr
(
"
Disabled
"
)
:
mapAux1Fact
.
valueString
)
:
""
valueText
:
mapAux1Fact
?
(
mapAux1Fact
.
value
===
0
?
qsTr
(
"
Disabled
"
)
:
mapAux1Fact
.
valueString
)
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Aux2
:
"
)
labelText
:
qsTr
(
"
Aux2
"
)
valueText
:
mapAux2Fact
?
(
mapAux2Fact
.
value
===
0
?
qsTr
(
"
Disabled
"
)
:
mapAux2Fact
.
valueString
)
:
""
valueText
:
mapAux2Fact
?
(
mapAux2Fact
.
value
===
0
?
qsTr
(
"
Disabled
"
)
:
mapAux2Fact
.
valueString
)
:
""
}
}
}
}
...
...
src/AutoPilotPlugins/PX4/PowerComponentSummary.qml
View file @
e28694db
...
@@ -36,17 +36,17 @@ FactPanel {
...
@@ -36,17 +36,17 @@ FactPanel {
anchors.fill
:
parent
anchors.fill
:
parent
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Battery Full
:
"
)
labelText
:
qsTr
(
"
Battery Full
"
)
valueText
:
batVChargedFact
?
batVChargedFact
.
valueString
+
"
"
+
batVChargedFact
.
units
:
""
valueText
:
batVChargedFact
?
batVChargedFact
.
valueString
+
"
"
+
batVChargedFact
.
units
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Battery Empty
:
"
)
labelText
:
qsTr
(
"
Battery Empty
"
)
valueText
:
batVEmptyFact
?
batVEmptyFact
.
valueString
+
"
"
+
batVEmptyFact
.
units
:
""
valueText
:
batVEmptyFact
?
batVEmptyFact
.
valueString
+
"
"
+
batVEmptyFact
.
units
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Number of Cells
:
"
)
labelText
:
qsTr
(
"
Number of Cells
"
)
valueText
:
batCellsFact
?
batCellsFact
.
valueString
:
""
valueText
:
batCellsFact
?
batCellsFact
.
valueString
:
""
}
}
}
}
...
...
src/AutoPilotPlugins/PX4/SafetyComponentSummary.qml
View file @
e28694db
...
@@ -14,46 +14,64 @@ FactPanel {
...
@@ -14,46 +14,64 @@ FactPanel {
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
enabled
}
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
enabled
}
FactPanelController
{
id
:
controller
;
factPanel
:
panel
}
FactPanelController
{
id
:
controller
;
factPanel
:
panel
}
property
Fact
returnAltFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_RETURN_ALT
"
)
property
Fact
returnAltFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_RETURN_ALT
"
)
property
Fact
descendAltFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_DESCEND_ALT
"
)
property
Fact
_descendAltFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_DESCEND_ALT
"
)
property
Fact
landDelayFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_LAND_DELAY
"
)
property
Fact
landDelayFact
:
controller
.
getParameterFact
(
-
1
,
"
RTL_LAND_DELAY
"
)
property
Fact
commRCLossFact
:
controller
.
getParameterFact
(
-
1
,
"
COM_RC_LOSS_T
"
)
property
Fact
commRCLossFact
:
controller
.
getParameterFact
(
-
1
,
"
COM_RC_LOSS_T
"
)
property
Fact
lowBattAction
:
controller
.
getParameterFact
(
-
1
,
"
COM_LOW_BAT_ACT
"
)
property
Fact
lowBattAction
:
controller
.
getParameterFact
(
-
1
,
"
COM_LOW_BAT_ACT
"
)
property
Fact
rcLossAction
:
controller
.
getParameterFact
(
-
1
,
"
NAV_RCL_ACT
"
)
property
Fact
rcLossAction
:
controller
.
getParameterFact
(
-
1
,
"
NAV_RCL_ACT
"
)
property
Fact
dataLossAction
:
controller
.
getParameterFact
(
-
1
,
"
NAV_DLL_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
{
Column
{
anchors.fill
:
parent
anchors.fill
:
parent
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
RTL min alt:
"
)
labelText
:
qsTr
(
"
Low Battery Failsafe
"
)
valueText
:
returnAltFact
?
returnAltFact
.
valueString
+
"
"
+
returnAltFact
.
units
:
""
valueText
:
lowBattAction
?
lowBattAction
.
enumStringValue
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
R
TL home alt:
"
)
labelText
:
qsTr
(
"
R
C Loss Failsafe
"
)
valueText
:
descendAltFact
?
descendAltFact
.
valueString
+
"
"
+
descendAltFact
.
units
:
""
valueText
:
rcLossAction
?
rcLossAction
.
enumStringValue
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
RC
loss RTL:
"
)
labelText
:
qsTr
(
"
RC
Loss Timeout
"
)
valueText
:
commRCLossFact
?
commRCLossFact
.
valueString
+
"
"
+
commRCLossFact
.
units
:
""
valueText
:
commRCLossFact
?
commRCLossFact
.
valueString
+
"
"
+
commRCLossFact
.
units
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
RC loss action:
"
)
labelText
:
qsTr
(
"
Data Link Loss Failsafe
"
)
valueText
:
rcLossAction
?
rc
LossAction
.
enumStringValue
:
""
valueText
:
dataLossAction
?
data
LossAction
.
enumStringValue
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Link loss action:
"
)
labelText
:
qsTr
(
"
RTL Climb To
"
)
valueText
:
dataLossAction
?
dataLossAction
.
enumStringValue
:
""
valueText
:
returnAltFact
?
returnAltFact
.
valueString
+
"
"
+
returnAltFact
.
units
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Low battery action:
"
)
labelText
:
qsTr
(
"
RTL, Then
"
)
valueText
:
lowBattAction
?
lowBattAction
.
enumStringValue
:
""
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
}
}
}
}
}
src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml
View file @
e28694db
...
@@ -29,29 +29,29 @@ FactPanel {
...
@@ -29,29 +29,29 @@ FactPanel {
anchors.fill
:
parent
anchors.fill
:
parent
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Compass 0
:
"
)
labelText
:
qsTr
(
"
Compass 0
"
)
valueText
:
mag0IdFact
?
(
mag0IdFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Ready
"
))
:
""
valueText
:
mag0IdFact
?
(
mag0IdFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Ready
"
))
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Compass 1
:
"
)
labelText
:
qsTr
(
"
Compass 1
"
)
visible
:
mag1IdFact
.
value
!==
0
visible
:
mag1IdFact
.
value
!==
0
valueText
:
qsTr
(
"
Ready
"
)
valueText
:
qsTr
(
"
Ready
"
)
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Compass 2
:
"
)
labelText
:
qsTr
(
"
Compass 2
"
)
visible
:
mag2IdFact
.
value
!==
0
visible
:
mag2IdFact
.
value
!==
0
valueText
:
qsTr
(
"
Ready
"
)
valueText
:
qsTr
(
"
Ready
"
)
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Gyro
:
"
)
labelText
:
qsTr
(
"
Gyro
"
)
valueText
:
gyro0IdFact
?
(
gyro0IdFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Ready
"
))
:
""
valueText
:
gyro0IdFact
?
(
gyro0IdFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Ready
"
))
:
""
}
}
VehicleSummaryRow
{
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Accelerometer
:
"
)
labelText
:
qsTr
(
"
Accelerometer
"
)
valueText
:
accel0IdFact
?
(
accel0IdFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Ready
"
))
:
""
valueText
:
accel0IdFact
?
(
accel0IdFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Ready
"
))
:
""
}
}
}
}
...
...
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