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

Add missing aborts and typehints for sdoclient #352

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

samsamfire
Copy link
Contributor

Hi,
I found some missing aborts whilst doing some tests:
in particular, an sdo abort should be sent when a timeout occurs (0x05040000)
an abort should also be sent if the expected command value is not correct (0x05040001).

I also added typehints were possible.

Also, have any of you considered to add a static type checker (mypy,...) and a linting tool ? Could be good in the future

samsamfire and others added 6 commits January 5, 2023 21:39
Also synchronous RPDOs should now be transmitted on sync reception
Need to add more tests for this last part
…erg#345)

* Fixed incorrect min (LowLImit) and max (HighLimit) values when using signed integer types.
* Fixed min/max for non-signed datatypes and added tests
* Removed type hints
-adding typehints
-adding some missing sdo aborts (timeout, unknown command)
@samsamfire
Copy link
Contributor Author

reverting the PDO change that has nothing to do with this PR

@acolomb
Copy link
Collaborator

acolomb commented Apr 24, 2024

@samsamfire Sorry for not responding for such a long time. I've tried to grasp your changes here in order to see if there's merit in merging it for the next release. However, it is quite convoluted between actual changes and formatting. Would you mind separating those into several smaller PRs or at least split into independent commits?

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

Successfully merging this pull request may close these issues.

4 participants