[Bug] reset_angle() without arguments during hold gives unexpected movement #352
Labels
bug
Something isn't working
software: pybricks-micropython
Issues with Pybricks MicroPython firmware (or EV3 runtime)
topic: motors
Issues involving motors
Describe the bug
When used without arguments,
reset_angle()
should reset the angle to the absolute marker.But in some cases while holding, it jumps to zero.
To reproduce
Things do seem to work correctly when giving an angle argument or when using a different stop mode.
Expected behavior
With no arguments given, the angle should do this for positive angles:
motor.reset_angle(motor.angle() % 360)
The text was updated successfully, but these errors were encountered: