Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
97a94b63
Commit
97a94b63
authored
Apr 14, 2017
by
Don Gagne
Browse files
Remove unused code
parent
6e2efab7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/MissionManager/MissionSettingsItem.cc
View file @
97a94b63
...
@@ -161,26 +161,6 @@ bool MissionSettingsItem::addMissionEndAction(QList<MissionItem*>& items, int se
...
@@ -161,26 +161,6 @@ bool MissionSettingsItem::addMissionEndAction(QList<MissionItem*>& items, int se
// IMPORTANT NOTE: If anything changes here you must also change MissionSettingsItem::scanForMissionSettings
// IMPORTANT NOTE: If anything changes here you must also change MissionSettingsItem::scanForMissionSettings
// Find last waypoint coordinate information so we have a lat/lon/alt to use
QGeoCoordinate
lastWaypointCoord
;
MAV_FRAME
lastWaypointFrame
;
bool
found
=
false
;
for
(
int
i
=
items
.
count
()
-
1
;
i
>
0
;
i
--
)
{
MissionItem
*
missionItem
=
items
[
i
];
const
MissionCommandUIInfo
*
uiInfo
=
qgcApp
()
->
toolbox
()
->
missionCommandTree
()
->
getUIInfo
(
_vehicle
,
(
MAV_CMD
)
missionItem
->
command
());
if
(
uiInfo
->
specifiesCoordinate
()
&&
!
uiInfo
->
isStandaloneCoordinate
())
{
lastWaypointCoord
=
missionItem
->
coordinate
();
lastWaypointFrame
=
missionItem
->
frame
();
found
=
true
;
break
;
}
}
if
(
!
found
)
{
return
false
;
}
if
(
_missionEndRTL
)
{
if
(
_missionEndRTL
)
{
qCDebug
(
MissionSettingsComplexItemLog
)
<<
"Appending end action RTL seqNum"
<<
seqNum
;
qCDebug
(
MissionSettingsComplexItemLog
)
<<
"Appending end action RTL seqNum"
<<
seqNum
;
item
=
new
MissionItem
(
seqNum
,
item
=
new
MissionItem
(
seqNum
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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