{"action":"opened","issue":{"url":"https://api.github.com/repos/PX4/Firmware/issues/9415","repository_url":"https://api.github.com/repos/PX4/Firmware","labels_url":"https://api.github.com/repos/PX4/Firmware/issues/9415/labels{/name}","comments_url":"https://api.github.com/repos/PX4/Firmware/issues/9415/comments","events_url":"https://api.github.com/repos/PX4/Firmware/issues/9415/events","html_url":"https://github.com/PX4/Firmware/issues/9415","id":320518334,"number":9415,"title":"mavlink_command_sender doesn't transmit messages","user":{"login":"okalachev","id":1683279,"avatar_url":"https://avatars3.githubusercontent.com/u/1683279?v=4","gravatar_id":"","url":"https://api.github.com/users/okalachev","html_url":"https://github.com/okalachev","followers_url":"https://api.github.com/users/okalachev/followers","following_url":"https://api.github.com/users/okalachev/following{/other_user}","gists_url":"https://api.github.com/users/okalachev/gists{/gist_id}","starred_url":"https://api.github.com/users/okalachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okalachev/subscriptions","organizations_url":"https://api.github.com/users/okalachev/orgs","repos_url":"https://api.github.com/users/okalachev/repos","events_url":"https://api.github.com/users/okalachev/events{/privacy}","received_events_url":"https://api.github.com/users/okalachev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-05T15:34:09Z","updated_at":"2018-05-05T15:34:09Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Trying to make PX4 send some MAVLink commands to other devices. Using `vehicle_command` topic for that. But have some problems with uORB. `MavlinkStreamCommandLong` and `mavlink_command_send` just don't receive my messages and so don't transmit them.\r\n\r\nHere is the example code, that I have in my module:\r\n\r\n```cpp\r\nvehicle_command_s cmd = {};\r\n\r\ncmd.command = 123;\r\ncmd.param1 = 456;\r\ncmd.param2 = 123;\r\ncmd.param3 = 456;\r\ncmd.target_system = 8; // random target system\r\ncmd.target_component = 0;\r\ncmd.source_system = 1; // our id\r\n\r\norb_advert_t cmd_pub = orb_advertise_queue(ORB_ID(vehicle_command), &cmd, 5); // tried without the queue, didn't help\r\n\r\nwhile(true) {\r\n     // publish a message once a second\r\n     usleep(1000000);\r\n     cmd.timestamp = hrt_absolute_time();\r\n     orb_publish(ORB_ID(vehicle_command), cmd_pub, &cmd);\r\n}\r\n```\r\nSo, I should get something like `cmd sender command 123 sent (first, retries: 1/0, channel: 0)` once a second, BUT, it happens only sometimes (once per 10–20 seconds), so most of the messages just got skipped.\r\n\r\nAnyone can help?\r\n"}}
{"actor":{"display_login":"okalachev"}}