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
91f5bce0
Commit
91f5bce0
authored
Aug 24, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Position SP update
parent
3386bc7e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
UAS.cc
src/uas/UAS.cc
+3
-1
No files found.
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
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