Closed BertLindeman closed 3 weeks ago
I do no want to stir up too much for this. Looking in pupdevices.py
Is the policy to document the defaults in the parameter list:
This would seem to me that the default for reset_angle
would be True.
Tested with
from pybricks.pupdevices import Motor
from pybricks.parameters import Port
from pybricks import version
print(version)
motor = Motor(Port.A)
print("start at", motor.angle())
('technichub', '3.6.0b2', 'ci-build-3607-v3.6.0b2-19-g9e5ef68d on 2024-10-29')
start at -146
('technichub', '3.6.0b2', 'ci-build-3607-v3.6.0b2-19-g9e5ef68d on 2024-10-29')
start at -146
Re-reading shows me I do not understand this mechanism at all.
The difference between reset_angle=True
scales the motor angle between -180 and 179,
reset_angle=False
keeps the motor angle even if it is outside that range.
So closing this as stupid.
close as user error
Describe the issue In #389 the argument
reset_angle
has been introduced. The doc does not state whetherTrue
orFalse
is used if the argument is not specified.Suggested improvement After
add
Or better fitting text.
This came up in #1916
[EDIT] If I knew how / where I would have tried a PR. [EDIT 2] Simple? in the doc Will try there.