Closed nakarlsson closed 1 year ago
Add the possability to know the index and subindex of the SM mapped object by adding the objectlist entry to the SM mapping.
Snippet
TX_PDO_handler
if(index == 0x2000, && subinex == 0x2)
doe something
PDO ... for (ix = 0; ix < ESCvar.sm3mappings; ix++) { const _objd obj = SMmap3[ix].obj; const _objectlist objl = SMmap3[ix].objectlistitem; TX_PDO_handler(objl->index, obj->subindex); }
Add the possability to know the index and subindex of the SM mapped object by adding the objectlist entry to the SM mapping.
Snippet
TX_PDO_handler
if(index == 0x2000, && subinex == 0x2)
doe something
PDO ... for (ix = 0; ix < ESCvar.sm3mappings; ix++) { const _objd obj = SMmap3[ix].obj; const _objectlist objl = SMmap3[ix].objectlistitem; TX_PDO_handler(objl->index, obj->subindex); }