Fix MAVLink MANUAL_CONTROL simulation mode handling

This commit is contained in:
Lorenz Meier 2015-09-04 19:11:40 +02:00
parent ae2dfe0026
commit f63dd12952
1 changed files with 1 additions and 1 deletions

View File

@ -1104,7 +1104,7 @@ MavlinkReceiver::handle_message_manual_control(mavlink_message_t *msg)
/* yaw */
rc.values[2] = man.r / 2 + 1500;
/* throttle */
rc.values[3] = man.z / 2 + 1000;
rc.values[3] = man.z / 1 + 1000;
/* decode all switches which fit into the channel mask */
unsigned max_switch = (sizeof(man.buttons) * 8);