|
|
|
@ -108,10 +108,10 @@ FlightMap {
@@ -108,10 +108,10 @@ FlightMap {
|
|
|
|
|
Connections { |
|
|
|
|
target: gesture |
|
|
|
|
|
|
|
|
|
onPanStarted: _disableVehicleTracking = true |
|
|
|
|
onFlickStarted: _disableVehicleTracking = true |
|
|
|
|
onPanFinished: panRecenterTimer.restart() |
|
|
|
|
onFlickFinished: panRecenterTimer.restart() |
|
|
|
|
function onPanStarted() { _disableVehicleTracking = true } |
|
|
|
|
function onFlickStarted() { _disableVehicleTracking = true } |
|
|
|
|
function onPanFinished() { panRecenterTimer.restart() } |
|
|
|
|
function onFlickFinished() { panRecenterTimer.restart() } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function pointInRect(point, rect) { |
|
|
|
@ -207,7 +207,7 @@ FlightMap {
@@ -207,7 +207,7 @@ FlightMap {
|
|
|
|
|
Connections { |
|
|
|
|
target: _missionController |
|
|
|
|
ignoreUnknownSignals: true |
|
|
|
|
onNewItemsFromVehicle: { |
|
|
|
|
function onNewItemsFromVehicle() { |
|
|
|
|
var visualItems = _missionController.visualItems |
|
|
|
|
if (visualItems && visualItems.count !== 1) { |
|
|
|
|
mapFitFunctions.fitMapViewportToMissionItems() |
|
|
|
@ -238,7 +238,9 @@ FlightMap {
@@ -238,7 +238,9 @@ FlightMap {
|
|
|
|
|
|
|
|
|
|
Connections { |
|
|
|
|
target: QGroundControl.multiVehicleManager |
|
|
|
|
onActiveVehicleChanged: trajectoryPolyline.path = _activeVehicle ? _activeVehicle.trajectoryPoints.list() : [] |
|
|
|
|
function onActiveVehicleChanged() { |
|
|
|
|
trajectoryPolyline.path = _activeVehicle ? _activeVehicle.trajectoryPoints.list() : [] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Connections { |
|
|
|
@ -380,7 +382,7 @@ FlightMap {
@@ -380,7 +382,7 @@ FlightMap {
|
|
|
|
|
|
|
|
|
|
Connections { |
|
|
|
|
target: QGroundControl.multiVehicleManager |
|
|
|
|
onActiveVehicleChanged: { |
|
|
|
|
function onActiveVehicleChanged() { |
|
|
|
|
if (!activeVehicle) { |
|
|
|
|
gotoLocationItem.visible = false |
|
|
|
|
} |
|
|
|
@ -418,7 +420,7 @@ FlightMap {
@@ -418,7 +420,7 @@ FlightMap {
|
|
|
|
|
|
|
|
|
|
Connections { |
|
|
|
|
target: QGroundControl.multiVehicleManager |
|
|
|
|
onActiveVehicleChanged: { |
|
|
|
|
function onActiveVehicleChanged() { |
|
|
|
|
if (!activeVehicle) { |
|
|
|
|
orbitMapCircle.visible = false |
|
|
|
|
} |
|
|
|
|