mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
Fix MAVLink MANUAL_CONTROL simulation mode handling
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user