mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Correctly find the position of GPS fix element
using coordinates of "gps-mode-text" element
This commit is contained in:
parent
64179a70a2
commit
454a81760e
@ -25,14 +25,16 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
SvgElementPositionItem {
|
||||||
text: ["No GPS", "No Fix", "Fix2D", "Fix3D"][GPSPositionSensor.Status]
|
sceneSize: info.sceneSize
|
||||||
|
elementName: "gps-mode-text"
|
||||||
|
|
||||||
// TODO: get coords from svg file, as soon as "gps-mode-text" text is converted to path
|
Text {
|
||||||
x: info.sceneSize.width * 0.05
|
text: ["No GPS", "No Fix", "Fix2D", "Fix3D"][GPSPositionSensor.Status]
|
||||||
y: info.sceneSize.height * 0.006
|
|
||||||
|
|
||||||
font.pixelSize: info.sceneSize.height * 0.02
|
anchors.centerIn: parent
|
||||||
color: "white"
|
font.pixelSize: parent.height*1.2
|
||||||
|
color: "white"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user