diff --git a/src/MissionManager/SurveyMissionItem.cc b/src/MissionManager/SurveyMissionItem.cc index eb28e7ec78f02e00bafa01f7435642a3ea858df1..94520eefee252dd9d2e5d5b371e7ca56e5b3859b 100644 --- a/src/MissionManager/SurveyMissionItem.cc +++ b/src/MissionManager/SurveyMissionItem.cc @@ -747,7 +747,9 @@ void SurveyMissionItem::_generateGrid(void) _setSurveyDistance(surveyDistance); if (cameraShots == 0 && _triggerCamera()) { - cameraShots = (int)ceil(surveyDistance / _triggerDistance()); + cameraShots = (int)floor(surveyDistance / _triggerDistance()); + // Take into account immediate camera trigger at waypoint entry + cameraShots++; } _setCameraShots(cameraShots); @@ -1065,7 +1067,9 @@ int SurveyMissionItem::_gridGenerator(const QList& polygonPoints, QLis // Calc camera shots here if there are no images in turnaround if (_triggerCamera() && !_imagesEverywhere()) { for (int i=0; i -1 || activeMapType.name.indexOf("Hybrid") > -1 - plugin: Plugin { name: "QGroundControl" } - MapRectangle { id: mapBoundary border.width: 2