mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
microRTPS: client: fix send per allocated topic
This commit is contained in:
@@ -119,6 +119,7 @@ void *send(void * /*unused*/)
|
||||
|
||||
while (!_should_exit_task) {
|
||||
@[ for idx, topic in enumerate(send_topics)]@
|
||||
{
|
||||
@(send_base_types[idx])_s @(topic)_data;
|
||||
|
||||
if (subs->@(topic)_sub.update(&@(topic)_data))
|
||||
@@ -148,6 +149,7 @@ void *send(void * /*unused*/)
|
||||
|
||||
@[ end if]@
|
||||
}
|
||||
}
|
||||
@[ end for]@
|
||||
px4_usleep(_options.sleep_ms * 1000);
|
||||
++loop;
|
||||
|
||||
Reference in New Issue
Block a user