1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

OP-1354 Fixes center-arrows position on resize, disable sideslip moving (flicker issue on SmoothedAnimation)

This commit is contained in:
Laurent Lalanne 2014-06-19 20:50:47 +02:00
parent 29d0d31e09
commit 5dc0cb7d8e
3 changed files with 15 additions and 3 deletions

View File

@ -10,6 +10,9 @@ Item {
elementName: "center-arrows"
sceneSize: background.sceneSize
width: Math.floor(scaledBounds.width * sceneItem.width)
height: Math.floor(scaledBounds.height * sceneItem.height)
x: Math.floor(scaledBounds.x * sceneItem.width)
y: Math.floor(scaledBounds.y * sceneItem.height)
}
@ -19,6 +22,9 @@ Item {
elementName: "center-plane"
sceneSize: background.sceneSize
width: Math.floor(scaledBounds.width * sceneItem.width)
height: Math.floor(scaledBounds.height * sceneItem.height)
x: Math.floor(scaledBounds.x * sceneItem.width)
y: Math.floor(scaledBounds.y * sceneItem.height)
}

View File

@ -61,6 +61,8 @@ Rectangle {
x: scaledBounds.x * sceneItem.width
}
// Disable Side_slip moving because flickering issue on whole Pfd.
/*
SvgElementImage {
id: side_slip
elementName: "sideslip-moving"
@ -77,11 +79,12 @@ Rectangle {
}
}
anchors.horizontalCenter: foreground.horizontalCenter
anchors.horizontalCenter: horizontCenterItem.horizontalCenter
//0.5 coefficient is empirical to limit indicator movement
anchors.horizontalCenterOffset: sideSlip*width*0.1 //was 0.5
y: scaledBounds.y * sceneItem.height
}
*/
Compass {
anchors.fill: parent

View File

@ -13,8 +13,11 @@ Item {
elementName: "roll-scale"
sceneSize: sceneItem.sceneSize
x: Math.floor(scaledBounds.x * sceneItem.width)
y: Math.floor(scaledBounds.y * sceneItem.height)
width: scaledBounds.width * sceneItem.width
height: scaledBounds.height * sceneItem.height
x: scaledBounds.x * sceneItem.width
y: scaledBounds.y * sceneItem.height
smooth: true