Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App delete unused mapped objects after click "Save" Button #227

Open
adamusx opened this issue Sep 24, 2020 · 1 comment
Open

App delete unused mapped objects after click "Save" Button #227

adamusx opened this issue Sep 24, 2020 · 1 comment

Comments

@adamusx
Copy link

adamusx commented Sep 24, 2020

Example:

Object 0x1A00: TPDO mapping parameter require subindex:
0 Number of mapped objects: 1
1 Mapped object 1
2 Mapped object 2
...
8 Mapped object 8

All mapped objects index 1...8 (even if only 1 mapped object is used) are required for CO_Init.
If there is no 8 mapped objects, CO_Init() return CO_ERROR_PARAMETERS because OD_TPDOMappingParameter_t or OD_RPDOMappingParameter_t has different structure size :

/* Verify parameters from CO_OD */ if( sizeof(OD_TPDOCommunicationParameter_t) != sizeof(CO_TPDOCommPar_t) || sizeof(OD_TPDOMappingParameter_t) != sizeof(CO_TPDOMapPar_t) || sizeof(OD_RPDOCommunicationParameter_t) != sizeof(CO_RPDOCommPar_t) || sizeof(OD_RPDOMappingParameter_t) != sizeof(CO_RPDOMapPar_t)) { return CO_ERROR_PARAMETERS; }

It happens after click "Save" button on Tab "TX PDO Mapping/ RX PDO Mapping". Application automatically remove unusned mapped objects.

@margce
Copy link

margce commented Oct 21, 2020

I'm experiencing the same issue, I need to edit the output files manually so it's compatible with the canopennode libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants