drivebase forever not available in beta.pybricks.com #2675
michaelwareman
started this conversation in
General
Replies: 2 comments 4 replies
-
|
I think the block for drivebase.drive got somehow lost in the conversion to beta.pybricks. In the current beta firmware the code is still there: from pybricks.parameters import Direction, Port
from pybricks.pupdevices import Motor
from pybricks.robotics import DriveBase
from pybricks.tools import wait
# Set up.
motor = Motor(Port.D, Direction.CLOCKWISE)
motor_2 = Motor(Port.E, Direction.COUNTERCLOCKWISE)
drive_base = DriveBase(motor, motor_2, 56, 114)
speed = 250
turn = 0
# Drive forever in python:
drive_base.drive(speed, turn)
wait(5000)I assume the pybricks developers will keep the drivebase.drive block in the next releases. Bert |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
It's the third block here: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a robot and need that the robot drives forever until something happens. For example, the ultrasonic sees an object or the smart sensor sees one of the target objects. Since I am working with the beta pybricks version. The Drivebase has the straight, turn, curve, coordinates as available choices. The regular version allow for the forever option. Is this being dropped? If so what is an alternate to the drivebase drive forever? Currently the robot drives a few millimeters forward as it does each loop looking for obsticales or one of the smart sensor target objects.
Beta Was this translation helpful? Give feedback.
All reactions