Browse Source

Don't show home terrain pos if not valid

QGC4.4
DonLakeFlyer 7 years ago
parent
commit
15a249a823
  1. 2
      src/PlanView/MissionItemStatus.qml

2
src/PlanView/MissionItemStatus.qml

@ -73,6 +73,7 @@ Rectangle { @@ -73,6 +73,7 @@ Rectangle {
visible: display
property real availableHeight: height - indicator.height
property bool _coordValid: object.coordinate.isValid
property bool _terrainAvailable: !isNaN(object.terrainPercent)
property real _terrainPercent: _terrainAvailable ? object.terrainPercent : 1
@ -85,6 +86,7 @@ Rectangle { @@ -85,6 +86,7 @@ Rectangle {
width: indicator.width
height: _terrainAvailable ? Math.max(availableHeight * _terrainPercent, 1) : parent.height
color: _terrainAvailable ? (_terrainPercent > object.altPercent ? "red": qgcPal.text) : "yellow"
visible: _coordValid
}
MissionItemIndexLabel {

Loading…
Cancel
Save