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

Improvements for version v1.2 #7

Merged
merged 29 commits into from
Jun 30, 2024
Merged

Improvements for version v1.2 #7

merged 29 commits into from
Jun 30, 2024

Conversation

samsamfire
Copy link
Owner

This PR brings a lot of refactoring, changes & functionnalities.

Refactoring:

  • Merge all configurators into one configurator with all the methods
  • Added constants for standard CANopen entries, for readability
  • Consistency in commenting
  • NewEM renamed to NewEMCY for consistency
  • monitoredNode renamed to hbConsumerEntry for consistency, also some improvements around creation.
  • cmd renamed to examples
  • fix some linting errors reported by staticcheck
  • updated README

Changes:

  • PDO configuration uses a pdo nb which corresponds either to RPDO (1<=nb<=256) or TPDO (257<=nb<=512)

Fixes:

  • Add check for emergency when creating PDO with New*PDO, because can be called later.
  • Real32 & Real64 where incorrectly parsed
  • Don't crash if TIME object not initialized properly
  • SYNC consumer was not working correctly when communication cycle period was 0

Added:

  • New "socketcanv2" driver, which should improve performance by using unsafe package
  • Octet string handled
  • Added callbacks for heartbeat events (loss, reboot, ...)

…each CANopen object, consistency between all objects.

Refactored : Minor simplification in TIME object to reduce indentation
Refactored : changed PDO to use new configuration
…rect go - c byte translations using unsafe package
…cle period was 0. Added regression test

Changed : Improved log around changing SYNC cob id
Refactored : removed nbMonitoredNodes as this corresponds to length of hbConsumerEntry
Refactored : added update method for hbConsumerEntry
Changed : do not re-create a hbConsumerEntry, only update it ==> for upcoming change & usage of callbacks
…change, startup ==> Added relevant tests, one is failing currently
Refactored : use new "range" over number where possible
…cal node creation in main example.

Changed : changed default eds file name to gocanopen, and changed creation/modification date to now.
@samsamfire samsamfire merged commit a39b8f6 into main Jun 30, 2024
3 checks passed
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.

1 participant