mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
OP-1354 Removed commented code
This commit is contained in:
parent
f02f12631d
commit
c6245260ec
@ -62,7 +62,6 @@ Item {
|
||||
sceneSize: info.sceneSize
|
||||
elementName: "info-bg"
|
||||
width: parent.width
|
||||
//anchors.top: parent.top
|
||||
}
|
||||
|
||||
SvgElementImage {
|
||||
@ -189,7 +188,7 @@ Item {
|
||||
width: scaledBounds.width * sceneItem.width
|
||||
height: scaledBounds.height * sceneItem.height
|
||||
y: Math.floor(scaledBounds.y * sceneItem.height)
|
||||
visible: true //total_distance > 5
|
||||
visible: true
|
||||
|
||||
MouseArea { id: total_dist_mouseArea; anchors.fill: parent; onClicked: reset_distance()}
|
||||
|
||||
|
@ -23,7 +23,6 @@ Rectangle {
|
||||
|
||||
Item {
|
||||
id: sceneItem
|
||||
|
||||
|
||||
width: Math.floor((parent.paintedHeight * 1.32) - (parent.paintedHeight * 0.013))
|
||||
height: Math.floor(parent.paintedHeight - parent.paintedHeight * 0.02)
|
||||
@ -31,9 +30,7 @@ Rectangle {
|
||||
|
||||
anchors.centerIn: parent
|
||||
clip: true
|
||||
|
||||
//onWidthChanged:console.log("TakeOffLocation.Status " + TakeOffLocation.Status)
|
||||
|
||||
|
||||
Loader {
|
||||
id: worldLoader
|
||||
anchors.fill: parent
|
||||
@ -61,31 +58,6 @@ Rectangle {
|
||||
x: scaledBounds.x * sceneItem.width
|
||||
}
|
||||
|
||||
// Disable Side_slip moving because flickering issue on whole Pfd.
|
||||
/*
|
||||
SvgElementImage {
|
||||
id: side_slip
|
||||
elementName: "sideslip-moving"
|
||||
sceneSize: sceneItem.viewportSize
|
||||
smooth: true
|
||||
|
||||
property real sideSlip: AccelState.y
|
||||
//smooth side slip changes, a low pass filter replacement
|
||||
//accels are updated once per second
|
||||
Behavior on sideSlip {
|
||||
SmoothedAnimation {
|
||||
duration: 1000
|
||||
velocity: -1
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
sceneSize: sceneItem.viewportSize
|
||||
|
Loading…
x
Reference in New Issue
Block a user