-
Notifications
You must be signed in to change notification settings - Fork 130
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
Mapping Parameter typedefs do not define correct number of mapped objects #220
Comments
Arrg thats horrible, you are correct it needs to auto generate the struct based on the largest possible set. Its worse now as well as i've added bit support to the PDO editor so you can in theory have 64 entries if all are single bits. |
Ok its done, try the auto build in a bit .. https://github.com/robincornelius/libedssharp/raw/gh-pages/build/OpenEDSEditor-latest.zip But there is a use case we are missing, it may be desired to have a bigger array than currently defined, so that dynamic PDOs can be changed on the fly. This could be solved in the editor by showing as many "Empty" slots as defined as empty mappings, its all a little bit messy though |
Hello Robin, |
The mapping parameters for PDOs (
OD_RPDOMappingParameter_t
andOD_TPDOMappingParameter_t
) seem to base the number of mapped objects off the first PDO defined. As an example, I have RPDO 1 on a node mapping two objects, but another of my RPDOs maps three objects. The typedef is as follows:While the use here produces a compilation error because
mappedObject3
is not defined:I believe the effort here was to minimize memory usage, but it needs to be based off the largest set of mapped objects.
The text was updated successfully, but these errors were encountered: