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
7b03fbcd
Commit
7b03fbcd
authored
May 10, 2017
by
Jacob Walser
Browse files
Alert user of sensor health error
parent
df641b23
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/FlightMap/Widgets/InstrumentSwipeView.qml
View file @
7b03fbcd
...
...
@@ -41,6 +41,10 @@ Item {
showPage
(
_currentPage
)
}
function
currentPage
()
{
return
_currentPage
}
MouseArea
{
anchors.fill
:
parent
onClicked
:
showNextPage
()
...
...
src/FlightMap/Widgets/QGCInstrumentWidget.qml
View file @
7b03fbcd
...
...
@@ -92,6 +92,37 @@ Rectangle {
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
{
...
...
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