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
42a2e61d
Commit
42a2e61d
authored
Aug 08, 2017
by
Don Gagne
Committed by
GitHub
Aug 08, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5135 from bluerobotics/vehicle-health-alert
Rework vehicle sensors_health alert
parents
9cb4f2dd
b25fa29c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
8 deletions
+36
-8
InstrumentSwipeView.qml
src/FlightMap/Widgets/InstrumentSwipeView.qml
+4
-0
QGCInstrumentWidget.qml
src/FlightMap/Widgets/QGCInstrumentWidget.qml
+31
-0
VehicleHealthWidget.qml
src/FlightMap/Widgets/VehicleHealthWidget.qml
+0
-7
VibrationWidget.qml
src/FlightMap/Widgets/VibrationWidget.qml
+1
-1
No files found.
src/FlightMap/Widgets/InstrumentSwipeView.qml
View file @
42a2e61d
...
@@ -41,6 +41,10 @@ Item {
...
@@ -41,6 +41,10 @@ Item {
showPage
(
_currentPage
)
showPage
(
_currentPage
)
}
}
function
currentPage
()
{
return
_currentPage
}
MouseArea
{
MouseArea
{
anchors.fill
:
parent
anchors.fill
:
parent
onClicked
:
showNextPage
()
onClicked
:
showNextPage
()
...
...
src/FlightMap/Widgets/QGCInstrumentWidget.qml
View file @
42a2e61d
...
@@ -92,6 +92,37 @@ Rectangle {
...
@@ -92,6 +92,37 @@ Rectangle {
onClicked
:
_valuesWidget
.
showPicker
()
onClicked
:
_valuesWidget
.
showPicker
()
}
}
}
}
Image
{
id
:
healthWarning
anchors.bottom
:
outerCompass
.
bottom
anchors.left
:
outerCompass
.
left
source
:
"
/qmlimages/Yield.svg
"
mipmap
:
true
visible
:
_activeVehicle
?
!
_warningsViewed
&&
_activeVehicle
.
unhealthySensors
.
length
>
0
&&
_valuesWidget
.
currentPage
()
!=
2
:
false
opacity
:
0.8
width
:
outerCompass
.
width
*
0.15
sourceSize.width
:
width
fillMode
:
Image
.
PreserveAspectFit
property
bool
_warningsViewed
:
false
MouseArea
{
anchors.fill
:
parent
hoverEnabled
:
true
onEntered
:
healthWarning
.
opacity
=
1
onExited
:
healthWarning
.
opacity
=
0.8
onClicked
:
{
_valuesWidget
.
showPage
(
2
)
healthWarning
.
_warningsViewed
=
true
}
}
Connections
{
target
:
_activeVehicle
onUnhealthySensorsChanged
:
healthWarning
.
_warningsViewed
=
false
}
}
}
}
Rectangle
{
Rectangle
{
...
...
src/FlightMap/Widgets/VehicleHealthWidget.qml
View file @
42a2e61d
...
@@ -27,13 +27,6 @@ QGCFlickable {
...
@@ -27,13 +27,6 @@ QGCFlickable {
property
var
unhealthySensors
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
?
QGroundControl
.
multiVehicleManager
.
activeVehicle
.
unhealthySensors
:
[
]
property
var
unhealthySensors
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
?
QGroundControl
.
multiVehicleManager
.
activeVehicle
.
unhealthySensors
:
[
]
// Any time the unhealthy sensors list changes, switch to the health page
onUnhealthySensorsChanged
:
{
if
(
unhealthySensors
.
length
!=
0
)
{
showPage
(
2
)
}
}
MouseArea
{
MouseArea
{
anchors.fill
:
parent
anchors.fill
:
parent
onClicked
:
showNextPage
()
onClicked
:
showNextPage
()
...
...
src/FlightMap/Widgets/VibrationWidget.qml
View file @
42a2e61d
...
@@ -153,7 +153,7 @@ QGCFlickable {
...
@@ -153,7 +153,7 @@ QGCFlickable {
}
}
QGCLabel
{
QGCLabel
{
text
:
qsTr
(
"
Accel
2
:
"
)
+
(
_activeVehicle
?
_activeVehicle
.
vibration
.
clipCount3
.
valueString
:
""
)
text
:
qsTr
(
"
Accel
3
:
"
)
+
(
_activeVehicle
?
_activeVehicle
.
vibration
.
clipCount3
.
valueString
:
""
)
color
:
textColor
color
:
textColor
}
}
}
}
...
...
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