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

DutyCycleEncoder Expected Zero improvements #7755

Open
sciencewhiz opened this issue Jan 31, 2025 · 0 comments
Open

DutyCycleEncoder Expected Zero improvements #7755

sciencewhiz opened this issue Jan 31, 2025 · 0 comments
Labels
type: feature Brand new functionality, features, pages, workflows, endpoints, etc.

Comments

@sciencewhiz
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Setting the DutyCycleEncoder Expected Zero is a multi-step process. First you must run the code with the range set, but with Expected Zero set to 0 to figure out what the expected zero should be, then you must put that value in the constructor. Then if you later need to change the expected zero (for example if a mechanism is reinstalled), you need to read the current value, and add the current Expected Zero value, to figure out what the new Expected Zero value should be, or else recompile the code with Expected Zero as 0, and find the new value to avoid the mental math.

Describe the solution you'd like
A method to set the Expected Zero at runtime, and a method to get the encoder value without the Expected Zero applied (but with the range scaling).

@sciencewhiz sciencewhiz added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Jan 31, 2025
@sciencewhiz sciencewhiz changed the title Duty Cycle Expected Zero improvements DutyCycleEncoder Expected Zero improvements Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

No branches or pull requests

1 participant