Skip to content

Commit

Permalink
Merge pull request mavlink#3965 from DonLakeFlyer/SurveyGridStart
Browse files Browse the repository at this point in the history
Fix starting point for first grid line
  • Loading branch information
DonLakeFlyer authored Aug 22, 2016
2 parents 6eb9f93 + aa6d5e3 commit f434cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MissionManager/SurveyMissionItem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f434cda

Please sign in to comment.