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
f434cda0
Commit
f434cda0
authored
Aug 21, 2016
by
Don Gagne
Committed by
GitHub
Aug 21, 2016
Browse files
Merge pull request #3965 from DonLakeFlyer/SurveyGridStart
Fix starting point for first grid line
parents
6eb9f931
aa6d5e37
Changes
1
Show whitespace changes
Inline
Side-by-side
src/MissionManager/SurveyMissionItem.cc
View file @
f434cda0
...
...
@@ -538,8 +538,8 @@ void SurveyMissionItem::_gridGenerator(const QList<QPointF>& polygonPoints, QLi
// Create set of rotated parallel lines within the expanded bounding rect. Make the lines larger than the
// bounding box to guarantee intersection.
QList
<
QLineF
>
lineList
;
float
x
=
largeBoundRect
.
topLeft
().
x
();
float
gridSpacing
=
_gridSpacingFact
.
rawValue
().
toDouble
();
float
x
=
largeBoundRect
.
topLeft
().
x
()
-
(
gridSpacing
/
2
);
while
(
x
<
largeBoundRect
.
bottomRight
().
x
())
{
float
yTop
=
largeBoundRect
.
topLeft
().
y
()
-
100.0
;
float
yBottom
=
largeBoundRect
.
bottomRight
().
y
()
+
100.0
;
...
...
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