1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

LP-230 Waypoint fixes velocity, altitude and heading needed for auto modes

This commit is contained in:
Laurent Lalanne 2016-02-20 18:36:18 +01:00
parent 59808be4e2
commit 35612b41f3
4 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ Item {
id: altitude_waypoint
elementName: "altitude-waypoint"
sceneSize: sceneItem.sceneSize
visible: (UAV.pathDesiredEndDown() != 0.0)
visible: (UAV.isFlightModeAssisted() && (UAV.pathDesiredEndDown() != 0.0))
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter

View File

@ -64,7 +64,7 @@ Item {
rotation: -UAV.attitudeYaw() + UAV.waypointHeading()
transformOrigin: Item.Center
visible: UAV.isPathDesiredActive()
visible: (UAV.isFlightModeAssisted() && UAV.isPathDesiredActive())
}
Item {

View File

@ -64,7 +64,7 @@ Item {
id: speed_waypoint
elementName: "speed-waypoint"
sceneSize: sceneItem.sceneSize
visible: UAV.isPathDesiredActive()
visible: (UAV.isFlightModeAssisted() && UAV.isPathDesiredActive())
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter

View File

@ -24,7 +24,7 @@ Item {
y: scaledBounds.y * sceneItem.height
smooth: true
visible: ((UAV.velocityDesiredDown() != 0.0) && (UAV.isFlightModeAssisted()))
visible: (UAV.isFlightModeAssisted() && (UAV.velocityDesiredDown() != 0.0))
// rotate it around the center
transform: Rotation {