{"action":"closed","issue":{"url":"https://api.github.com/repos/mavlink/mavlink/issues/592","repository_url":"https://api.github.com/repos/mavlink/mavlink","labels_url":"https://api.github.com/repos/mavlink/mavlink/issues/592/labels{/name}","comments_url":"https://api.github.com/repos/mavlink/mavlink/issues/592/comments","events_url":"https://api.github.com/repos/mavlink/mavlink/issues/592/events","html_url":"https://github.com/mavlink/mavlink/issues/592","id":165573665,"number":592,"title":"MAVLink with the Pixhawk some commands not working.","user":{"login":"ruralguru","id":7812240,"avatar_url":"https://avatars.githubusercontent.com/u/7812240?v=3","gravatar_id":"","url":"https://api.github.com/users/ruralguru","html_url":"https://github.com/ruralguru","followers_url":"https://api.github.com/users/ruralguru/followers","following_url":"https://api.github.com/users/ruralguru/following{/other_user}","gists_url":"https://api.github.com/users/ruralguru/gists{/gist_id}","starred_url":"https://api.github.com/users/ruralguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruralguru/subscriptions","organizations_url":"https://api.github.com/users/ruralguru/orgs","repos_url":"https://api.github.com/users/ruralguru/repos","events_url":"https://api.github.com/users/ruralguru/events{/privacy}","received_events_url":"https://api.github.com/users/ruralguru/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-14T14:21:03Z","updated_at":"2016-07-14T14:22:41Z","closed_at":"2016-07-14T14:22:41Z","body":"I am utilizing an off-board computer to control the Pixhawk using v3.3.3 firmware\r\nThe MAVLink documentation states that REQUEST_DATA_STREAM is deprecated and to instead use SET_MESSAGE_INTERVAL.\r\nHowever when I try to utilize the command_long encode to send I get no response as per the following c++ code:\r\n\r\n**mavlink_command_long_t com = { 0 };\r\ncom.target_system    = system_id;\r\ncom.target_component = autopilot_id;\r\ncom.command          = MAV_CMD_GET_MESSAGE_INTERVAL;\r\ncom.confirmation     = 0;\r\ncom.param1           = mav_msg_ID; //The MAVLink message ID\r\ncom.param2\t\t\t\t\t\t= interval_us; //The interval between two messages, in microseconds. Set to -1 to disable and 0 to request default rate.\r\nprintf(\"Sent request for ID#:%.0f to be output every %.0f us\\n\",com.param1, com.param2);\r\n\r\nmavlink_message_t message;\r\nmavlink_msg_command_long_encode(system_id, companion_id, &message, &com);\t //Encode\r\n\r\nint len = serial_port->write_message(message); //Send the message\r\nreturn len;**\r\n\r\nthis is based off the ned write utilized in c_uart_example code also under mavlink."}}
{"actor":{"display_login":"ruralguru"}}