Replies: 3 comments 4 replies
-
If you run the following program, what do you see? from pybricks import version
print(version) Can you share an example code that isn't working for you? |
Beta Was this translation helpful? Give feedback.
-
Wow, that was quick ! Code : from pybricks.hubs import PrimeHub
from pybricks.pupdevices import Motor, ColorSensor, UltrasonicSensor, ForceSensor
from pybricks.parameters import Button, Color, Direction, Port, Side, Stop
from pybricks.robotics import DriveBase
from pybricks.tools import wait, StopWatch
from pybricks import version
print(version)
left_motor = Motor(Port.E, Direction.COUNTERCLOCKWISE)
right_motor = Motor(Port.F)
drive_base = DriveBase(left_motor, right_motor, wheel_diameter=56, axle_track=160)
drive_base.use_gyro=True Output : ('primehub', '3.3.0', 'v1.20.0-23-g6c633a8dd on 2023-11-24')
Traceback (most recent call last):
File "Wro24.py", line 11, in <module>
AttributeError: 'DriveBase' object has no attribute 'use_gyro' |
Beta Was this translation helpful? Give feedback.
-
I am getting the same error regarding the gryo. If I use to check the attributes available to DriveBase it has things like turn and angle, but it does not have use_gyro. When I do from pybricks import version, I get an error "no module named 'pybricks.version' |
Beta Was this translation helpful? Give feedback.
-
Hi,
I just updated our (spike) hubs to the newest not-beta version.
As expected the GyroDriveBase is not available anymore,
but it wont let us set use_gyro :
AttributeError: 'DriveBase' object has no attribute 'use_gyro'
Do we have to use the current beta ? Is gyro not included in the standart version ?
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions