Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
9895dc7e
Commit
9895dc7e
authored
Apr 16, 2019
by
Flavio Tonelli
Browse files
BUGFIX: When scanning from the top the starting altitude shall be equal to the structure altitude.
parent
13c0dd9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/MissionManager/StructureScanComplexItem.cc
View file @
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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment