From 3c36010c049e691684786b1cdd50b408b51cf3ef Mon Sep 17 00:00:00 2001 From: David Lechner Date: Tue, 28 Feb 2023 10:39:19 -0600 Subject: [PATCH] pybricks.ev3devices: Fix Gyro direction parameter name. The actual implemented name is `direction`, not `positive_direction`. Fixes: https://github.com/pybricks/support/issues/509 --- src/pybricks/ev3devices.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pybricks/ev3devices.py b/src/pybricks/ev3devices.py index 701b75d..a61d86d 100644 --- a/src/pybricks/ev3devices.py +++ b/src/pybricks/ev3devices.py @@ -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.