From ccea3aa937132ce1d69433e92a08abcccffba8f9 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Thu, 21 Mar 2019 14:19:36 +0100 Subject: [PATCH] modmotor: make reset_angle argument explicit instead of defaulting to 0 --- pybricks/ev3devices.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pybricks/ev3devices.py b/pybricks/ev3devices.py index ca88e0f..fe49bd2 100644 --- a/pybricks/ev3devices.py +++ b/pybricks/ev3devices.py @@ -93,11 +93,11 @@ class Motor(): """ pass - def reset_angle(self, angle=0): + def reset_angle(self, angle): """Reset the accumulated rotation angle of the motor. Arguments: - angle (:ref:`angle`): Value to which the angle should be reset (*Default*: 0). + angle (:ref:`angle`): Value to which the angle should be reset. """ pass @@ -434,11 +434,11 @@ class GyroSensor(): """ pass - def reset_angle(self, angle=0): + def reset_angle(self, angle): """Set the rotation angle of the sensor to a desired value. Arguments: - angle (:ref:`angle`): Value to which the angle should be reset (*Default*: 0). + angle (:ref:`angle`): Value to which the angle should be reset. """ pass