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
91f5bce0
Commit
91f5bce0
authored
Aug 24, 2014
by
Lorenz Meier
Browse files
Position SP update
parent
3386bc7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/uas/UAS.cc
View file @
91f5bce0
...
...
@@ -2794,6 +2794,8 @@ void UAS::setManual6DOFControlCommands(double x, double y, double z, double roll
float
q
[
4
];
mavlink_euler_to_quaternion
(
roll
,
pitch
,
yaw
,
q
);
float
yawrate
=
0.0
f
;
// Do not control rates and throttle
quint8
mask
=
(
1
<<
0
)
|
(
1
<<
1
)
|
(
1
<<
2
);
// ignore rates
mask
|=
(
1
<<
6
);
// ignore throttle
...
...
@@ -2805,7 +2807,7 @@ void UAS::setManual6DOFControlCommands(double x, double y, double z, double roll
(
1
<<
6
)
|
(
1
<<
7
)
|
(
1
<<
8
);
mavlink_msg_set_position_target_local_ned_pack
(
mavlink
->
getSystemId
(),
mavlink
->
getComponentId
(),
&
message
,
QGC
::
groundTimeMilliseconds
(),
this
->
uasId
,
0
,
MAV_FRAME_LOCAL_NED
,
position_mask
,
x
,
y
,
z
,
0
,
0
,
0
,
0
,
0
,
0
);
MAV_FRAME_LOCAL_NED
,
position_mask
,
x
,
y
,
z
,
0
,
0
,
0
,
0
,
0
,
0
,
yaw
,
yawrate
);
sendMessage
(
message
);
qDebug
()
<<
__FILE__
<<
__LINE__
<<
": SENT 6DOF CONTROL MESSAGES: x"
<<
x
<<
" y: "
<<
y
<<
" z: "
<<
z
<<
" roll: "
<<
roll
<<
" pitch: "
<<
pitch
<<
" yaw: "
<<
yaw
;
...
...
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