Skip to content

Commit 747c7d1

Browse files
committed
Fix: swaths coverage
1 parent 3ad93a7 commit 747c7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fields2cover/swath_generator/swath_generator_base.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ std::vector<double> SwathGeneratorBase::computeBestAngles(
192192

193193
std::vector<double> SwathGeneratorBase::getSwathsDistribution(
194194
SwathOverlapType type, double field_width, double cov_width) {
195-
size_t n = static_cast<size_t>(std::ceil(fabs(field_width / cov_width)));
195+
size_t n = static_cast<size_t>(fabs(field_width / cov_width));
196196
if (type == SwathOverlapType::MIDDLE_OVERLAP ||
197197
type == SwathOverlapType::EVENLY_DISTRIBUTED_OVERLAP) {
198198
++n;

0 commit comments

Comments
 (0)