{"action":"opened","issue":{"url":"https://api.github.com/repos/mavlink/mavlink/issues/659","repository_url":"https://api.github.com/repos/mavlink/mavlink","labels_url":"https://api.github.com/repos/mavlink/mavlink/issues/659/labels{/name}","comments_url":"https://api.github.com/repos/mavlink/mavlink/issues/659/comments","events_url":"https://api.github.com/repos/mavlink/mavlink/issues/659/events","html_url":"https://github.com/mavlink/mavlink/issues/659","id":197188898,"number":659,"title":"Wrong parameters are set in the message","user":{"login":"SalahuddinAsh","id":7689015,"avatar_url":"https://avatars.githubusercontent.com/u/7689015?v=3","gravatar_id":"","url":"https://api.github.com/users/SalahuddinAsh","html_url":"https://github.com/SalahuddinAsh","followers_url":"https://api.github.com/users/SalahuddinAsh/followers","following_url":"https://api.github.com/users/SalahuddinAsh/following{/other_user}","gists_url":"https://api.github.com/users/SalahuddinAsh/gists{/gist_id}","starred_url":"https://api.github.com/users/SalahuddinAsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SalahuddinAsh/subscriptions","organizations_url":"https://api.github.com/users/SalahuddinAsh/orgs","repos_url":"https://api.github.com/users/SalahuddinAsh/repos","events_url":"https://api.github.com/users/SalahuddinAsh/events{/privacy}","received_events_url":"https://api.github.com/users/SalahuddinAsh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-22T14:41:33Z","updated_at":"2016-12-22T14:41:33Z","closed_at":null,"body":"Hi everyone, \r\n\r\nI'm trying to send DO_MOUNT_CONTROL message from ODroid to PC. I use this snippet of code\r\n```\r\n\r\nmavlink_msg_command_long_pack(\r\n\t\t\t\tmavlink_system.sysid,    \t\t// @param system_id \r\n\t\t\t\tmavlink_system.compid,        \t\t// @param component_id \r\n\t\t\t\t&msg,                         \t\t// @param msg The MAVLink message\r\n\t\t\t\t1,                  \t\t\t// @param target_system System \r\n\t\t\t\t0,               \t\t\t// @param target_component Component \r\n\t\t\t\tMAV_CMD_DO_MOUNT_CONTROL, \t\t// @param command Command ID\r\n\t\t\t\t0,                            \t\t// @param confirmation\r\n\t\t\t\t4,                            \t// @param param 1 - pitch \r\n\t\t\t\t8,                               \t// @param param 2 - roll \r\n\t\t\t\t16,                            \t// @param param 3 - yaw \r\n\t\t\t\t0, \t\t\t\t\t// @param param 4 - WIP: alt in meters \r\n\t\t\t\t0,                                  \t// @param param 5 - WIP: latitude in degrees * 1E7\r\n\t\t\t\t0,                                  \t// @param param 6 - WIP: longitude in degrees * 1E7\r\n\t\t\t\tMAV_MOUNT_MODE_MAVLINK_TARGETING);  \t// @param param 7 - MAV_MOUNT_MODE enum value\r\n\r\n  len = mavlink_msg_to_send_buffer(buf, &msg);\r\n  serialWrite(fd, pbuf, len);\r\n```\r\n\r\nThe problem is that ODroid sends a message with the wrong values to PC. Here is the sent message \r\n```\r\nfe 21 00 14 c8 4c   00 00 80 40   00 00 00 41    00 00 80 41    00 00 00 00    00 00 00 00    00 00 00 00 00 00 00 40    cd 00 01 00 00 71   94\r\n```\r\nThe angles' values (param1, param2, param3) are not set right in the MAVLink message and also param7 which is MOUNT_MODE which is MAVLINK_TARGETTING should be equal to 2 not 40 in hex.\r\n\r\nCould anyone please tell me why does this happen so?\r\nMany thanks"}}
{"actor":{"display_login":"SalahuddinAsh"}}