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