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
c2a4428f
Commit
c2a4428f
authored
Jul 01, 2017
by
Don Gagne
Committed by
GitHub
Jul 01, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5375 from DonLakeFlyer/APMGeoFence
Fix bad signalling when fence/rally not supported
parents
63d4103d
d9f955e2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
+13
-2
APMGeoFenceManager.cc
src/FirmwarePlugin/APM/APMGeoFenceManager.cc
+1
-0
APMRallyPointManager.cc
src/FirmwarePlugin/APM/APMRallyPointManager.cc
+6
-1
PlanMasterController.cc
src/MissionManager/PlanMasterController.cc
+3
-0
Vehicle.cc
src/Vehicle/Vehicle.cc
+3
-1
No files found.
src/FirmwarePlugin/APM/APMGeoFenceManager.cc
View file @
c2a4428f
...
...
@@ -103,6 +103,7 @@ void APMGeoFenceManager::loadFromVehicle(void)
_polygon
.
clear
();
if
(
!
_fenceSupported
)
{
emit
loadComplete
(
_breachReturnPoint
,
_polygon
);
return
;
}
...
...
src/FirmwarePlugin/APM/APMRallyPointManager.cc
View file @
c2a4428f
...
...
@@ -53,12 +53,17 @@ void APMRallyPointManager::sendToVehicle(const QList<QGeoCoordinate>& rgPoints)
void
APMRallyPointManager
::
loadFromVehicle
(
void
)
{
if
(
_vehicle
->
isOfflineEditingVehicle
()
||
!
rallyPointsSupported
()
||
_readTransactionInProgress
)
{
if
(
_vehicle
->
isOfflineEditingVehicle
()
||
_readTransactionInProgress
)
{
return
;
}
_rgPoints
.
clear
();
if
(
!
rallyPointsSupported
())
{
emit
loadComplete
(
QList
<
QGeoCoordinate
>
());
return
;
}
_cReadRallyPoints
=
_vehicle
->
parameterManager
()
->
getParameter
(
FactSystem
::
defaultComponentId
,
_rallyTotalParam
)
->
rawValue
().
toInt
();
qCDebug
(
RallyPointManagerLog
)
<<
"APMRallyPointManager::loadFromVehicle - point count"
<<
_cReadRallyPoints
;
if
(
_cReadRallyPoints
==
0
)
{
...
...
src/MissionManager/PlanMasterController.cc
View file @
c2a4428f
...
...
@@ -155,6 +155,7 @@ void PlanMasterController::loadFromVehicle(void)
_loadGeoFence
=
true
;
_syncInProgress
=
true
;
emit
syncInProgressChanged
(
true
);
qCDebug
(
PlanMasterControllerLog
)
<<
"PlanMasterController::loadFromVehicle _missionController.loadFromVehicle"
;
_missionController
.
loadFromVehicle
();
setDirty
(
false
);
}
...
...
@@ -166,6 +167,7 @@ void PlanMasterController::_loadMissionComplete(void)
if
(
_editMode
&&
_loadGeoFence
)
{
_loadGeoFence
=
false
;
_loadRallyPoints
=
true
;
qCDebug
(
PlanMasterControllerLog
)
<<
"PlanMasterController::_loadMissionComplete _geoFenceController.loadFromVehicle"
;
_geoFenceController
.
loadFromVehicle
();
setDirty
(
false
);
}
...
...
@@ -175,6 +177,7 @@ void PlanMasterController::_loadGeoFenceComplete(void)
{
if
(
_editMode
&&
_loadRallyPoints
)
{
_loadRallyPoints
=
false
;
qCDebug
(
PlanMasterControllerLog
)
<<
"PlanMasterController::_loadGeoFenceComplete _rallyPointController.loadFromVehicle"
;
_rallyPointController
.
loadFromVehicle
();
setDirty
(
false
);
}
...
...
src/Vehicle/Vehicle.cc
View file @
c2a4428f
...
...
@@ -1804,6 +1804,7 @@ void Vehicle::_missionLoadComplete(void)
// After the initial mission request completes we ask for the geofence
if
(
!
_geoFenceManagerInitialRequestSent
)
{
_geoFenceManagerInitialRequestSent
=
true
;
qCDebug
(
VehicleLog
)
<<
"_missionLoadComplete requesting geoFence"
;
_geoFenceManager
->
loadFromVehicle
();
}
}
...
...
@@ -1813,13 +1814,14 @@ void Vehicle::_geoFenceLoadComplete(void)
// After geofence request completes we ask for the rally points
if
(
!
_rallyPointManagerInitialRequestSent
)
{
_rallyPointManagerInitialRequestSent
=
true
;
qCDebug
(
VehicleLog
)
<<
"_missionLoadComplete requesting rally points"
;
_rallyPointManager
->
loadFromVehicle
();
}
}
void
Vehicle
::
_rallyPointLoadComplete
(
void
)
{
qCDebug
(
VehicleLog
)
<<
"_missionLoadComplete _initialPlanRequestComplete = true"
;
_initialPlanRequestComplete
=
true
;
}
...
...
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