Implementation-specific fields of CompoundValue such as mode, is_union, etc. may conflict with DSDL-defined fields.
A possible solution is to prefix these fields with underscore (a regular DSDL field always starts with a letter character so this rules out a conflict), and implement global accessors available via package namespace uavcan., e.g.:
Implementation-specific fields of
CompoundValue
such asmode
,is_union
, etc. may conflict with DSDL-defined fields.A possible solution is to prefix these fields with underscore (a regular DSDL field always starts with a letter character so this rules out a conflict), and implement global accessors available via package namespace
uavcan.
, e.g.:As for
CompoundType.mode
, it does not seem to be used anywhere outside constructor, and if so it should be removed.@bendyer do you think this is a sensible idea?