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
d8bf2254
Commit
d8bf2254
authored
Nov 02, 2012
by
Lorenz Meier
Browse files
Merge pull request #185 from Susurrus/man_con_fix
Fix transmitting pitch and roll from the joystick
parents
28fef65f
b3ff71e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/uas/UAS.cc
View file @
d8bf2254
...
...
@@ -2446,7 +2446,7 @@ void UAS::setManualControlCommands(double roll, double pitch, double yaw, double
if
(((
mode
&
MAV_MODE_FLAG_DECODE_POSITION_MANUAL
)
&&
(
mode
&
MAV_MODE_FLAG_DECODE_POSITION_SAFETY
))
||
(
mode
&
MAV_MODE_FLAG_HIL_ENABLED
))
{
mavlink_message_t
message
;
mavlink_msg_manual_control_pack
(
mavlink
->
getSystemId
(),
mavlink
->
getComponentId
(),
&
message
,
this
->
uasId
,
(
float
)
manual
Roll
Angle
,
(
float
)
manual
Pitch
Angle
,
(
float
)
manualThrust
,
(
float
)
manualYawAngle
,
buttons
);
mavlink_msg_manual_control_pack
(
mavlink
->
getSystemId
(),
mavlink
->
getComponentId
(),
&
message
,
this
->
uasId
,
(
float
)
manual
Pitch
Angle
,
(
float
)
manual
Roll
Angle
,
(
float
)
manualThrust
,
(
float
)
manualYawAngle
,
buttons
);
sendMessage
(
message
);
//qDebug() << __FILE__ << __LINE__ << ": SENT MANUAL CONTROL MESSAGE: roll" << manualRollAngle << " pitch: " << manualPitchAngle << " yaw: " << manualYawAngle << " thrust: " << manualThrust;
...
...
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