mavlink: swap x and y when handling MANUAL_CONTROL mavlink message

This commit is contained in:
Anton Babushkin 2014-05-01 23:45:21 +02:00
parent d0a6fcf3d0
commit f6d61dfb4c
1 changed files with 2 additions and 2 deletions

View File

@ -432,8 +432,8 @@ MavlinkReceiver::handle_message_manual_control(mavlink_message_t *msg)
memset(&manual, 0, sizeof(manual));
manual.timestamp = hrt_absolute_time();
manual.roll = man.x / 1000.0f;
manual.pitch = man.y / 1000.0f;
manual.pitch = man.x / 1000.0f;
manual.roll = man.y / 1000.0f;
manual.yaw = man.r / 1000.0f;
manual.throttle = man.z / 1000.0f;