Unverified Commit 7e513013 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #7357 from FlavioTonelli/StructureScanFixStable

BUGFIX: When scanning from the top the starting altitude shall be equ…
parents 13c0dd9e 9895dc7e
......@@ -293,7 +293,7 @@ void StructureScanComplexItem::appendMissionItems(QList<MissionItem*>& items, QO
{
int seqNum = _sequenceNumber;
bool startFromTop = _startFromTopFact.rawValue().toBool();
double startAltitude = _scanBottomAltFact.rawValue().toDouble() + (startFromTop ? _structureHeightFact.rawValue().toDouble() : 0);
double startAltitude = (startFromTop ? _structureHeightFact.rawValue().toDouble() : _scanBottomAltFact.rawValue().toDouble());
MissionItem* item = nullptr;
......
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