forked from Archive/PX4-Autopilot
dds_topics: Adds missing data reader
This commit is contained in:
parent
f3e85219a3
commit
ab867b963c
|
@ -166,7 +166,7 @@ static void on_topic_update(uxrSession *session, uxrObjectId object_id, uint16_t
|
||||||
|
|
||||||
bool RcvTopicsPubs::init(uxrSession *session, uxrStreamId reliable_out_stream_id, uxrStreamId reliable_in_stream_id, uxrStreamId best_effort_in_stream_id, uxrObjectId participant_id, const char *client_namespace)
|
bool RcvTopicsPubs::init(uxrSession *session, uxrStreamId reliable_out_stream_id, uxrStreamId reliable_in_stream_id, uxrStreamId best_effort_in_stream_id, uxrObjectId participant_id, const char *client_namespace)
|
||||||
{
|
{
|
||||||
@[ for idx, sub in enumerate(subscriptions)]@
|
@[ for idx, sub in enumerate(subscriptions + subscriptions_multi)]@
|
||||||
{
|
{
|
||||||
uint16_t queue_depth = uORB::DefaultQueueSize<@(sub['simple_base_type'])_s>::value * 2; // use a bit larger queue size than internal
|
uint16_t queue_depth = uORB::DefaultQueueSize<@(sub['simple_base_type'])_s>::value * 2; // use a bit larger queue size than internal
|
||||||
create_data_reader(session, reliable_out_stream_id, best_effort_in_stream_id, participant_id, @(idx), client_namespace, "@(sub['topic_simple'])", "@(sub['dds_type'])", queue_depth);
|
create_data_reader(session, reliable_out_stream_id, best_effort_in_stream_id, participant_id, @(idx), client_namespace, "@(sub['topic_simple'])", "@(sub['dds_type'])", queue_depth);
|
||||||
|
|
Loading…
Reference in New Issue