Repository navigation
Conversation
…-bit clean HAL interface.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After a long wait... This PR updates the hostmot2 encoder code in such way that there no longer occurs any truncation of the encoder counts exposed to HAL and writes full 64-bit counts.
The old interface wrote the counts to a 32-bit HAL target and the HAL migration stage persisted the truncation. This has now been changed. The new HAL interface is fully 64-bit and the internal counters are now exposed directly without truncation. Internal truncation handling has been removed as it is no longer required.
The PR also updates the remaining 64-bit clean HAL interface thingies.
A few instances of
stdint.htypes were fixed to use the proper rtapi types instead.Test on hardware required, testers requested
This PR needs to be tested on real hardware. Preferably on hardware that would have overflowed 32-bit counters (i.e. counts that reach > +231-1 and < -231). Please leave a comment if you can test and what your results are.