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

refactor: new Position struct #52

Merged
merged 7 commits into from
May 9, 2024
Merged

refactor: new Position struct #52

merged 7 commits into from
May 9, 2024

Conversation

Tropix126
Copy link
Member

Describe the changes this PR makes. Why should it be merged?

Refactors Position to hopefully have more precision. It now always stores data in terms of ticks with a TPR value being the LCM between the two largest TPR devices (motor and rotation sensor). I've also adjusted the naming to match similar standard library types like Duration.

Additional Context

TODO:

  • Hardware test (of course)
  • Update examples

@Tropix126 Tropix126 added smart-devices Relates to a smartport device. adi-devices Relates to three-wire ADI devices. labels May 5, 2024
Copy link
Member

@Gavin-Niederman Gavin-Niederman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (quaLity Gearset TpMs)

@Tropix126 Tropix126 merged commit cfd5484 into main May 9, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adi-devices Relates to three-wire ADI devices. smart-devices Relates to a smartport device.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants