mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-31 16:52:10 +01:00
OP-1438 VSI_Arc_PFD+Status : Vertical velocity display looks ugly due to telemetry updates, add some filtering.
This commit is contained in:
parent
5cda39d271
commit
47aadd25cd
@ -3,6 +3,14 @@ import QtQuick 2.0
|
|||||||
Item {
|
Item {
|
||||||
id: sceneItem
|
id: sceneItem
|
||||||
property variant sceneSize
|
property variant sceneSize
|
||||||
|
property real vert_velocity
|
||||||
|
|
||||||
|
Timer {
|
||||||
|
interval: 100; running: true; repeat: true
|
||||||
|
onTriggered: vert_velocity = (0.9 * vert_velocity) + (0.1 * VelocityState.Down)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SvgElementImage {
|
SvgElementImage {
|
||||||
id: vsi_window
|
id: vsi_window
|
||||||
@ -31,9 +39,9 @@ Item {
|
|||||||
|
|
||||||
//rotate it around the center
|
//rotate it around the center
|
||||||
transform: Rotation {
|
transform: Rotation {
|
||||||
angle: -VelocityDesired.Down*5
|
angle: -VelocityDesired.Down * 5
|
||||||
origin.y : vsi_waypoint.height/2
|
origin.y : vsi_waypoint.height / 2
|
||||||
origin.x : vsi_waypoint.width*33
|
origin.x : vsi_waypoint.width * 33
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,9 +71,9 @@ Item {
|
|||||||
|
|
||||||
//rotate it around the center
|
//rotate it around the center
|
||||||
transform: Rotation {
|
transform: Rotation {
|
||||||
angle: -VelocityState.Down*5
|
angle: -vert_velocity * 5
|
||||||
origin.y : vsi_arrow.height/2
|
origin.y : vsi_arrow.height / 2
|
||||||
origin.x : vsi_arrow.width*3.15
|
origin.x : vsi_arrow.width * 3.15
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user