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
5cab62ad
Commit
5cab62ad
authored
Oct 10, 2017
by
Don Gagne
Committed by
GitHub
Oct 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5738 from mavlink/revert-5701-CurrentMissionItem
Revert "Fix current mission item updates"
parents
59a2947d
82187dee
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
MissionManager.cc
src/MissionManager/MissionManager.cc
+2
-0
PlanManager.cc
src/MissionManager/PlanManager.cc
+14
-1
PlanManager.h
src/MissionManager/PlanManager.h
+2
-0
No files found.
src/MissionManager/MissionManager.cc
View file @
5cab62ad
...
...
@@ -40,6 +40,8 @@ void MissionManager::writeArduPilotGuidedMissionItem(const QGeoCoordinate& gotoC
_transactionInProgress
=
TransactionWrite
;
_connectToMavlink
();
mavlink_message_t
messageOut
;
mavlink_mission_item_t
missionItem
;
...
...
src/MissionManager/PlanManager.cc
View file @
5cab62ad
...
...
@@ -38,7 +38,6 @@ PlanManager::PlanManager(Vehicle* vehicle, MAV_MISSION_TYPE planType)
_ackTimeoutTimer
->
setInterval
(
_ackTimeoutMilliseconds
);
connect
(
_ackTimeoutTimer
,
&
QTimer
::
timeout
,
this
,
&
PlanManager
::
_ackTimeout
);
connect
(
_vehicle
,
&
Vehicle
::
mavlinkMessageReceived
,
this
,
&
PlanManager
::
_mavlinkMessageReceived
);
}
PlanManager
::~
PlanManager
()
...
...
@@ -63,6 +62,7 @@ void PlanManager::_writeMissionItemsWorker(void)
_transactionInProgress
=
TransactionWrite
;
_retryCount
=
0
;
emit
inProgressChanged
(
true
);
_connectToMavlink
();
_writeMissionCount
();
}
...
...
@@ -139,6 +139,7 @@ void PlanManager::loadFromVehicle(void)
_retryCount
=
0
;
_transactionInProgress
=
TransactionRead
;
emit
inProgressChanged
(
true
);
_connectToMavlink
();
_requestList
();
}
...
...
@@ -802,6 +803,7 @@ QString PlanManager::_missionResultToString(MAV_MISSION_RESULT result)
void
PlanManager
::
_finishTransaction
(
bool
success
)
{
emit
progressPct
(
1
);
_disconnectFromMavlink
();
_itemIndicesToRead
.
clear
();
_itemIndicesToWrite
.
clear
();
...
...
@@ -890,6 +892,7 @@ void PlanManager::_removeAllWorker(void)
emit
progressPct
(
0
);
_connectToMavlink
();
_dedicatedLink
=
_vehicle
->
priorityLink
();
mavlink_msg_mission_clear_all_pack_chan
(
qgcApp
()
->
toolbox
()
->
mavlinkProtocol
()
->
getSystemId
(),
qgcApp
()
->
toolbox
()
->
mavlinkProtocol
()
->
getComponentId
(),
...
...
@@ -941,6 +944,16 @@ void PlanManager::_clearAndDeleteWriteMissionItems(void)
_writeMissionItems
.
clear
();
}
void
PlanManager
::
_connectToMavlink
(
void
)
{
connect
(
_vehicle
,
&
Vehicle
::
mavlinkMessageReceived
,
this
,
&
PlanManager
::
_mavlinkMessageReceived
);
}
void
PlanManager
::
_disconnectFromMavlink
(
void
)
{
disconnect
(
_vehicle
,
&
Vehicle
::
mavlinkMessageReceived
,
this
,
&
PlanManager
::
_mavlinkMessageReceived
);
}
QString
PlanManager
::
_planTypeString
(
void
)
{
switch
(
_planType
)
{
...
...
src/MissionManager/PlanManager.h
View file @
5cab62ad
...
...
@@ -126,6 +126,8 @@ protected:
void
_clearAndDeleteWriteMissionItems
(
void
);
QString
_lastMissionReqestString
(
MAV_MISSION_RESULT
result
);
void
_removeAllWorker
(
void
);
void
_connectToMavlink
(
void
);
void
_disconnectFromMavlink
(
void
);
QString
_planTypeString
(
void
);
protected:
...
...
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