mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
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:
committed by
laurensvalk
parent
a553df3b03
commit
3c36010c04
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user