1
0
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:
Dmytro Poplavskiy 2013-11-09 11:03:04 +10:00 committed by Alessio Morale
parent 64179a70a2
commit 454a81760e

View File

@ -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"
}
} }
} }