modmotor: make reset_angle argument explicit

instead of defaulting to 0
This commit is contained in:
Laurens Valk
2019-03-21 14:19:36 +01:00
parent 5f12f8df0b
commit ccea3aa937
+4 -4
View File
@@ -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