purduesigbots/pros

๐Ÿ›[BUG] `Rotation::reset()` does not change the absolute angle of the rotation sensor

SizzinSeal opened this issue ยท 1 comments

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 It looks like this isn't a bug, just not fully documented behavior:
image