mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +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 */
|
/* yaw */
|
||||||
rc.values[2] = man.r / 2 + 1500;
|
rc.values[2] = man.r / 2 + 1500;
|
||||||
/* throttle */
|
/* throttle */
|
||||||
rc.values[3] = man.z / 2 + 1000;
|
rc.values[3] = man.z / 1 + 1000;
|
||||||
|
|
||||||
/* decode all switches which fit into the channel mask */
|
/* decode all switches which fit into the channel mask */
|
||||||
unsigned max_switch = (sizeof(man.buttons) * 8);
|
unsigned max_switch = (sizeof(man.buttons) * 8);
|
||||||
|
|||||||
Reference in New Issue
Block a user