Commit b92ffa74 authored by Don Gagne's avatar Don Gagne

parent 449861be
......@@ -327,18 +327,17 @@ void StructureScanComplexItem::appendMissionItems(QList<MissionItem*>& items, QO
missionItemParent);
items.append(item);
// Fly a layer pattern
for (int layer=0; layer<_layersFact.rawValue().toInt(); layer++) {
bool addTriggerStart = true;
double halfLayerHeight = _cameraCalc.adjustedFootprintFrontal()->rawValue().toDouble() / 2.0;
double layerAltitude = startAltitude;
// Set up for the first layer
double layerAltitude = startAltitude;
double halfLayerHeight = _cameraCalc.adjustedFootprintFrontal()->rawValue().toDouble() / 2.0;
if (startFromTop) {
layerAltitude -= halfLayerHeight;
} else {
layerAltitude += halfLayerHeight;
}
// Move down to the middle of the layer
if (startFromTop) {
layerAltitude -= halfLayerHeight;
} else {
layerAltitude += halfLayerHeight;
}
for (int layer=0; layer<_layersFact.rawValue().toInt(); layer++) {
bool addTriggerStart = true;
bool done = false;
int currentVertex = _entryVertex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment