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
86d211ee
Commit
86d211ee
authored
Apr 15, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #616 from gefink/master
Mavlink Inspector array bug
parents
4ac07c37
ef33588a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
QGCMAVLinkInspector.cc
src/ui/QGCMAVLinkInspector.cc
+10
-10
No files found.
src/ui/QGCMAVLinkInspector.cc
View file @
86d211ee
...
@@ -224,7 +224,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
...
@@ -224,7 +224,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
// Enforce null termination
// Enforce null termination
QString
tmp
(
"%1, "
);
QString
tmp
(
"%1, "
);
QString
string
;
QString
string
;
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
j
].
array_length
;
++
j
)
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
fieldid
].
array_length
;
++
j
)
{
{
string
+=
tmp
.
arg
(
nums
[
j
]);
string
+=
tmp
.
arg
(
nums
[
j
]);
}
}
...
@@ -246,7 +246,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
...
@@ -246,7 +246,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
// Enforce null termination
// Enforce null termination
QString
tmp
(
"%1, "
);
QString
tmp
(
"%1, "
);
QString
string
;
QString
string
;
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
j
].
array_length
;
++
j
)
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
fieldid
].
array_length
;
++
j
)
{
{
string
+=
tmp
.
arg
(
nums
[
j
]);
string
+=
tmp
.
arg
(
nums
[
j
]);
}
}
...
@@ -268,7 +268,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
...
@@ -268,7 +268,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
// Enforce null termination
// Enforce null termination
QString
tmp
(
"%1, "
);
QString
tmp
(
"%1, "
);
QString
string
;
QString
string
;
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
j
].
array_length
;
++
j
)
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
fieldid
].
array_length
;
++
j
)
{
{
string
+=
tmp
.
arg
(
nums
[
j
]);
string
+=
tmp
.
arg
(
nums
[
j
]);
}
}
...
@@ -290,7 +290,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
...
@@ -290,7 +290,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
// Enforce null termination
// Enforce null termination
QString
tmp
(
"%1, "
);
QString
tmp
(
"%1, "
);
QString
string
;
QString
string
;
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
j
].
array_length
;
++
j
)
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
fieldid
].
array_length
;
++
j
)
{
{
string
+=
tmp
.
arg
(
nums
[
j
]);
string
+=
tmp
.
arg
(
nums
[
j
]);
}
}
...
@@ -312,7 +312,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
...
@@ -312,7 +312,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
// Enforce null termination
// Enforce null termination
QString
tmp
(
"%1, "
);
QString
tmp
(
"%1, "
);
QString
string
;
QString
string
;
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
j
].
array_length
;
++
j
)
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
fieldid
].
array_length
;
++
j
)
{
{
string
+=
tmp
.
arg
(
nums
[
j
]);
string
+=
tmp
.
arg
(
nums
[
j
]);
}
}
...
@@ -334,9 +334,9 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
...
@@ -334,9 +334,9 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
// Enforce null termination
// Enforce null termination
QString
tmp
(
"%1, "
);
QString
tmp
(
"%1, "
);
QString
string
;
QString
string
;
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
j
].
array_length
;
++
j
)
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
fieldid
].
array_length
;
++
j
)
{
{
string
+=
tmp
.
arg
(
nums
[
j
]);
string
+=
tmp
.
arg
(
nums
[
j
]);
}
}
item
->
setData
(
2
,
Qt
::
DisplayRole
,
QString
(
"float[%1]"
).
arg
(
messageInfo
[
msgid
].
fields
[
fieldid
].
array_length
));
item
->
setData
(
2
,
Qt
::
DisplayRole
,
QString
(
"float[%1]"
).
arg
(
messageInfo
[
msgid
].
fields
[
fieldid
].
array_length
));
item
->
setData
(
1
,
Qt
::
DisplayRole
,
string
);
item
->
setData
(
1
,
Qt
::
DisplayRole
,
string
);
...
@@ -356,7 +356,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
...
@@ -356,7 +356,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
// Enforce null termination
// Enforce null termination
QString
tmp
(
"%1, "
);
QString
tmp
(
"%1, "
);
QString
string
;
QString
string
;
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
j
].
array_length
;
++
j
)
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
fieldid
].
array_length
;
++
j
)
{
{
string
+=
tmp
.
arg
(
nums
[
j
]);
string
+=
tmp
.
arg
(
nums
[
j
]);
}
}
...
@@ -378,7 +378,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
...
@@ -378,7 +378,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
// Enforce null termination
// Enforce null termination
QString
tmp
(
"%1, "
);
QString
tmp
(
"%1, "
);
QString
string
;
QString
string
;
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
j
].
array_length
;
++
j
)
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
fieldid
].
array_length
;
++
j
)
{
{
string
+=
tmp
.
arg
(
nums
[
j
]);
string
+=
tmp
.
arg
(
nums
[
j
]);
}
}
...
@@ -400,7 +400,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
...
@@ -400,7 +400,7 @@ void QGCMAVLinkInspector::updateField(int msgid, int fieldid, QTreeWidgetItem* i
// Enforce null termination
// Enforce null termination
QString
tmp
(
"%1, "
);
QString
tmp
(
"%1, "
);
QString
string
;
QString
string
;
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
j
].
array_length
;
++
j
)
for
(
unsigned
int
j
=
0
;
j
<
messageInfo
[
msgid
].
fields
[
fieldid
].
array_length
;
++
j
)
{
{
string
+=
tmp
.
arg
(
nums
[
j
]);
string
+=
tmp
.
arg
(
nums
[
j
]);
}
}
...
...
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