Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
5832b6a3
Commit
5832b6a3
authored
Sep 06, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't show vehicle till 2d gps lock
parent
942b6d66
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
8 deletions
+29
-8
FlightMap.qml
src/FlightMap/FlightMap.qml
+20
-2
VehicleMapItem.qml
src/FlightMap/MapItems/VehicleMapItem.qml
+9
-6
No files found.
src/FlightMap/FlightMap.qml
View file @
5832b6a3
...
...
@@ -166,8 +166,7 @@ Item {
delegate
:
VehicleMapItem
{
coordinate
:
object
.
coordinate
heading
:
object
.
heading
vehicle
:
object
isSatellite
:
root
.
isSatelliteMap
}
}
...
...
@@ -236,6 +235,25 @@ Item {
*/
}
// Vehicle GPS lock display
Column
{
id
:
gpsLockColumn
y
:
(
parent
.
height
-
height
)
/
2
width
:
parent
.
width
Repeater
{
model
:
multiVehicleManager
.
vehicles
delegate
:
QGCLabel
{
width
:
gpsLockColumn
.
width
horizontalAlignment
:
Text
.
AlignHCenter
visible
:
object
.
satelliteLock
<
2
text
:
"
No GPS Lock for Vehicle #
"
+
object
.
id
}
}
}
// Mission item list
ListView
{
id
:
missionItemSummaryList
...
...
src/FlightMap/MapItems/VehicleMapItem.qml
View file @
5832b6a3
...
...
@@ -28,14 +28,17 @@ import QtQuick 2.4
import
QtLocation
5.3
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
.
Vehicle
1.0
/// Marker for displaying a vehicle location on the map
MapQuickItem
{
property
real
heading
:
0
property
bool
isSatellite
:
false
property
var
vehicle
///< Vehicle object
property
bool
isSatellite
:
false
///< true: satellite map is showing
anchorPoint.x
:
vehicleIcon
.
width
/
2
anchorPoint.y
:
vehicleIcon
.
height
/
2
coordinate
:
vehicle
.
coordinate
visible
:
vehicle
.
satelliteLock
>=
2
// 2D lock
sourceItem
:
Image
{
id
:
vehicleIcon
...
...
@@ -47,7 +50,7 @@ MapQuickItem {
transform
:
Rotation
{
origin.x
:
vehicleIcon
.
width
/
2
origin.y
:
vehicleIcon
.
height
/
2
angle
:
heading
angle
:
vehicle
.
heading
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment