Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
3e7e5a47
Commit
3e7e5a47
authored
Apr 15, 2021
by
Valentin Platzgummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nan altitude upload problem after loading complex mission item solved, appimage updated
parent
c9d3a49d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
QGroundControl.AppImage
deploy/QGroundControl.AppImage
+0
-0
MeasurementComplexItem.cc
src/MeasurementComplexItem/MeasurementComplexItem.cc
+3
-4
No files found.
deploy/QGroundControl.AppImage
View file @
3e7e5a47
No preview for this file type
src/MeasurementComplexItem/MeasurementComplexItem.cc
View file @
3e7e5a47
...
...
@@ -332,8 +332,7 @@ bool MeasurementComplexItem::load(const QJsonObject &complexObject,
const
auto
jsonVariant
=
valueRef
.
toArray
();
Variant
variant
;
QString
e
;
if
(
JsonHelper
::
loadGeoCoordinateArray
(
jsonVariant
,
false
,
variant
,
e
))
{
if
(
JsonHelper
::
loadGeoCoordinateArray
(
jsonVariant
,
true
,
variant
,
e
))
{
if
(
variant
.
size
()
>
0
)
{
variantVector
.
append
(
std
::
move
(
variant
));
}
else
{
...
...
@@ -534,9 +533,9 @@ void MeasurementComplexItem::save(QJsonArray &planItems) {
for
(
auto
const
&
route
:
_variantVector
)
{
QJsonValue
variant
;
if
(
route
.
size
()
>
0
)
{
JsonHelper
::
saveGeoCoordinateArray
(
route
,
fals
e
,
variant
);
JsonHelper
::
saveGeoCoordinateArray
(
route
,
tru
e
,
variant
);
}
else
{
JsonHelper
::
saveGeoCoordinateArray
(
_route
,
fals
e
,
variant
);
JsonHelper
::
saveGeoCoordinateArray
(
_route
,
tru
e
,
variant
);
}
variantsArray
.
append
(
variant
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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