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
80f8b3c3
Unverified
Commit
80f8b3c3
authored
Sep 27, 2018
by
Don Gagne
Committed by
GitHub
Sep 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6895 from jlecoeur/pr-debug_float_array
Add support for message DEBUG_FLOAT_ARRAY
parents
a980fac9
43381352
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
v2.0
libs/mavlink/include/mavlink/v2.0
+1
-1
MAVLinkDecoder.cc
src/ui/MAVLinkDecoder.cc
+11
-0
No files found.
v2.0
@
e5f6257d
Subproject commit
d8fcf0a694dc11b3f83b89a0970e3d8c4e48d418
Subproject commit
e5f6257dd005b6fb3bff23d45f2b3b417b52539b
src/ui/MAVLinkDecoder.cc
View file @
80f8b3c3
...
...
@@ -36,6 +36,7 @@ MAVLinkDecoder::MAVLinkDecoder(MAVLinkProtocol* protocol) :
textMessageFilter
.
insert
(
MAVLINK_MSG_ID_DEBUG
,
false
);
textMessageFilter
.
insert
(
MAVLINK_MSG_ID_DEBUG_VECT
,
false
);
textMessageFilter
.
insert
(
MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY
,
false
);
textMessageFilter
.
insert
(
MAVLINK_MSG_ID_NAMED_VALUE_FLOAT
,
false
);
textMessageFilter
.
insert
(
MAVLINK_MSG_ID_NAMED_VALUE_INT
,
false
);
// textMessageFilter.insert(MAVLINK_MSG_ID_HIGHRES_IMU, false);
...
...
@@ -238,6 +239,16 @@ void MAVLinkDecoder::emitFieldValue(mavlink_message_t* msg, int fieldid, quint64
name
=
QString
(
"%1.%2"
).
arg
(
buf
).
arg
(
fieldName
);
time
=
getUnixTimeFromMs
(
msg
->
sysid
,
(
debug
.
time_usec
+
500
)
/
1000
);
// Scale to milliseconds, round up/down correctly
}
else
if
(
msgid
==
MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY
)
{
mavlink_debug_float_array_t
debug
;
mavlink_msg_debug_float_array_decode
(
msg
,
&
debug
);
char
buf
[
11
];
strncpy
(
buf
,
debug
.
name
,
10
);
buf
[
10
]
=
'\0'
;
name
=
QString
(
"%1.%2"
).
arg
(
buf
).
arg
(
fieldName
);
time
=
getUnixTimeFromMs
(
msg
->
sysid
,
(
debug
.
time_usec
+
500
)
/
1000
);
// Scale to milliseconds, round up/down correctly
}
else
if
(
msgid
==
MAVLINK_MSG_ID_DEBUG
)
{
mavlink_debug_t
debug
;
...
...
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