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
0a785b3a
Commit
0a785b3a
authored
Jul 12, 2020
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
ddf99734
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
MissionController.cc
src/MissionManager/MissionController.cc
+10
-5
No files found.
src/MissionManager/MissionController.cc
View file @
0a785b3a
...
...
@@ -1258,6 +1258,9 @@ void MissionController::_recalcFlightPathSegments(void)
_directionArrows
.
clear
();
_incompleteComplexItemLines
.
clearAndDeleteContents
();
// Mission Settings item needs to start with no segment
lastFlyThroughVI
->
setSimpleFlighPathSegment
(
nullptr
);
// Grovel through the list of items keeping track of things needed to correctly draw waypoints lines
for
(
int
i
=
1
;
i
<
_visualItems
->
count
();
i
++
)
{
...
...
@@ -1490,9 +1493,10 @@ void MissionController::_recalcMissionFlightStatus()
// both relative altitude.
// No values for first item
lastFlyThroughVI
->
setAltDifference
(
0.0
);
lastFlyThroughVI
->
setAzimuth
(
0.0
);
lastFlyThroughVI
->
setDistance
(
0.0
);
lastFlyThroughVI
->
setAltDifference
(
0
);
lastFlyThroughVI
->
setAzimuth
(
0
);
lastFlyThroughVI
->
setDistance
(
0
);
lastFlyThroughVI
->
setDistanceFromStart
(
0
);
_minAMSLAltitude
=
_maxAMSLAltitude
=
_settingsItem
->
coordinate
().
altitude
();
...
...
@@ -1514,8 +1518,9 @@ void MissionController::_recalcMissionFlightStatus()
}
// Assume the worst
item
->
setAzimuth
(
0.0
);
item
->
setDistance
(
0.0
);
item
->
setAzimuth
(
0
);
item
->
setDistance
(
0
);
item
->
setDistanceFromStart
(
0
);
// Look for speed changed
double
newSpeed
=
item
->
specifiedFlightSpeed
();
...
...
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