-
Notifications
You must be signed in to change notification settings - Fork 197
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
Missing datatype 0x16 -> UNSIGNED24 #466
Comments
I'm not familiar with UNSIGNED12 in canopen. Datatype 0x16 is according to CiA 301 UNSIGNED24. Where is UNSIGNED12 used? |
Hi @sveinse you are right i made a mistake UNSIGNED24 is missing UNSIGNED12 does not exist so far. |
I dig into code to see how it can be implemented, unfortunatly canopen use struct library that not support 24bit data. Perhaps with this work arround it could work unpack('<l', b'\x57\x15\x00' + b'\x00')[0] # unsigned littleendian |
I see also that pull request already submited to correct that #267 unfortunately it was mixed with other change and not implemented. |
The latest release 2.3.0 contains support for UNSIGNED24 and all the other types that were missing. Done in PR #440. Is there anything that's missing or not working properly? |
What issues specifically? The canopen 2.3.0 release should work around an incompatible change in python-can 4.4.0 already. And for the next python-can release, the incompatibility is fixed again on their end already, just not released. |
Hi,
Could you implement USIGNED24 bits datatype ? Hex code is 0x16.
Thierry
The text was updated successfully, but these errors were encountered: