Skip to content

Commit aa4c856

Browse files
committed
Add comment explaining route_field to instance mapping in DDS demux
1 parent 2dadc4f commit aa4c856

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/modules/uxrce_dds_client/dds_topics.h.em

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ struct RcvTopicsPubs {
168168
{ORB_ID(@(sub['topic_simple']))}@('' if idx == sub['max_instances']-1 else ',')
169169
@[ end for]@
170170
};
171+
// Maps route_field values (arbitrary, not bounded to [0, max_instances)) to uORB instance indices
171172
struct {
172173
uint8_t assigned_ids[@(sub['max_instances'])] {};
173174
uint8_t num_assigned {0};

0 commit comments

Comments
 (0)