pybricks.ev3devices: Fix Gyro direction parameter name.

The actual implemented name is `direction`, not `positive_direction`.

Fixes: https://github.com/pybricks/support/issues/509
This commit is contained in:
David Lechner
2023-03-20 13:56:16 +01:00
committed by laurensvalk
parent a553df3b03
commit 3c36010c04
+2 -4
View File
@@ -168,14 +168,12 @@ class InfraredSensor:
class GyroSensor:
"""LEGO® MINDSTORMS® EV3 Gyro Sensor."""
def __init__(
self, port: _Port, positive_direction: _Direction = _Direction.CLOCKWISE
):
def __init__(self, port: _Port, direction: _Direction = _Direction.CLOCKWISE):
"""GyroSensor(port)
Arguments:
port (Port): Port to which the sensor is connected.
positive_direction (Direction):
direction (Direction):
Positive rotation direction when looking at the red dot on top
of the sensor.