Skip to content

Commit

Permalink
MAVLink app: Fix yaw scaling for joystick input
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed May 29, 2015
1 parent 5ac5fae commit aab379c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/mavlink/mavlink_receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ MavlinkReceiver::handle_message_manual_control(mavlink_message_t *msg)
* which makes the corner positions unreachable.
* scale yaw up and clip it to overcome this.
*/
rc.values[2] = man.r / 1.5f + 1500;
rc.values[2] = man.r / 1.2f + 1500;
if (rc.values[2] > 2000) {
rc.values[2] = 2000;
} else if (rc.values[2] < 1000) {
Expand Down

0 comments on commit aab379c

Please sign in to comment.