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
768e2408
Commit
768e2408
authored
Aug 24, 2014
by
Lorenz Meier
Browse files
Merge pull request #838 from mavlink/attitudeplots
emit roll, pitch and yaw setpoints for plotting
parents
6836a23a
76b5784c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/uas/UAS.cc
View file @
768e2408
...
...
@@ -1131,6 +1131,11 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
mavlink_quaternion_to_euler
(
out
.
q
,
&
roll
,
&
pitch
,
&
yaw
);
quint64
time
=
getUnixTimeFromMs
(
out
.
time_boot_ms
);
emit
attitudeThrustSetPointChanged
(
this
,
roll
,
pitch
,
yaw
,
out
.
thrust
,
time
);
// For plotting emit roll sp, pitch sp and yaw sp values
emit
valueChanged
(
uasId
,
"roll sp"
,
"rad"
,
roll
,
out
.
time_boot_ms
);
emit
valueChanged
(
uasId
,
"pitch sp"
,
"rad"
,
pitch
,
out
.
time_boot_ms
);
emit
valueChanged
(
uasId
,
"yaw sp"
,
"rad"
,
yaw
,
out
.
time_boot_ms
);
}
break
;
case
MAVLINK_MSG_ID_MISSION_COUNT
:
...
...
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