|
|
|
@ -144,9 +144,8 @@ bool CorridorScanComplexItem::specifiesCoordinate(void) const
@@ -144,9 +144,8 @@ bool CorridorScanComplexItem::specifiesCoordinate(void) const
|
|
|
|
|
|
|
|
|
|
int CorridorScanComplexItem::_transectCount(void) const |
|
|
|
|
{ |
|
|
|
|
double transectSpacing = _cameraCalc.adjustedFootprintSide()->rawValue().toDouble(); |
|
|
|
|
double fullWidth = _corridorWidthFact.rawValue().toDouble(); |
|
|
|
|
return fullWidth > 0.0 ? qCeil(fullWidth / transectSpacing) : 1; |
|
|
|
|
return fullWidth > 0.0 ? qCeil(fullWidth / _transectSpacing()) : 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void CorridorScanComplexItem::_appendLoadedMissionItems(QList<MissionItem*>& items, QObject* missionItemParent) |
|
|
|
@ -343,7 +342,7 @@ void CorridorScanComplexItem::_rebuildTransectsPhase1(void)
@@ -343,7 +342,7 @@ void CorridorScanComplexItem::_rebuildTransectsPhase1(void)
|
|
|
|
|
_transects.clear(); |
|
|
|
|
_transectsPathHeightInfo.clear(); |
|
|
|
|
|
|
|
|
|
double transectSpacing = _cameraCalc.adjustedFootprintSide()->rawValue().toDouble(); |
|
|
|
|
double transectSpacing = _transectSpacing(); |
|
|
|
|
double fullWidth = _corridorWidthFact.rawValue().toDouble(); |
|
|
|
|
double halfWidth = fullWidth / 2.0; |
|
|
|
|
int transectCount = _transectCount(); |
|
|
|
@ -501,3 +500,16 @@ double CorridorScanComplexItem::timeBetweenShots(void)
@@ -501,3 +500,16 @@ double CorridorScanComplexItem::timeBetweenShots(void)
|
|
|
|
|
{ |
|
|
|
|
return _cruiseSpeed == 0 ? 0 : _cameraCalc.adjustedFootprintFrontal()->rawValue().toDouble() / _cruiseSpeed; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
double CorridorScanComplexItem::_transectSpacing(void) const |
|
|
|
|
{ |
|
|
|
|
double transectSpacing = _cameraCalc.adjustedFootprintSide()->rawValue().toDouble(); |
|
|
|
|
if (transectSpacing < 0.5) { |
|
|
|
|
// We can't let spacing get too small otherwise we will end up with too many transects.
|
|
|
|
|
// So we limit to 0.5 meter spacing as min and set to huge value which will cause a single
|
|
|
|
|
// transect to be added.
|
|
|
|
|
transectSpacing = 100000; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return transectSpacing; |
|
|
|
|
} |
|
|
|
|