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

🐛[BUG] Rotation::reset() does not change the absolute angle of the rotation sensor #688

Open
SizzinSeal opened this issue Jul 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@SizzinSeal
Copy link
Contributor

Describe the bug
There is no way to set the absolute angle measured by the rotation sensor to 0

To Reproduce
Steps to reproduce the behavior:

  1. Instantiate a rotation sensor
  2. try to zero the sensor with Rotation::reset()
  3. Observe that the measured absolute angle does not change

Expected behavior
For Rotation::reset() to zero the absolute position of the encoder

Screenshots
N/A

Desktop (please complete the following information):
N/A

Kernel Version: 4.1.0

Additional context
Also, the docs don't distinguish between Rotation::get_position and Rotation::get_angle

@SizzinSeal SizzinSeal added the bug Something isn't working label Jul 14, 2024
@ion098
Copy link
Contributor

ion098 commented Jul 23, 2024

@SizzinSeal It looks like this isn't a bug, just not fully documented behavior:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants