You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The stall flag is always raised when doing position-based Drive Base commands.
While we almost never use the stall flag for this use case, it still shouldn't be set.
To reproduce
frompybricks.pupdevicesimportMotorfrompybricks.parametersimportPort, Directionfrompybricks.roboticsimportDriveBasefrompybricks.toolsimportwaitleft_motor=Motor(Port.A, Direction.COUNTERCLOCKWISE)
right_motor=Motor(Port.B)
drive_base=DriveBase(left_motor, right_motor, wheel_diameter=56, axle_track=112)
# Drive forward without blocking.drive_base.straight(500, wait=False)
# Wait until done.whilenotdrive_base.distance_control.done() ornotdrive_base.heading_control.done():
wait(10)
# Check for stall.ifdrive_base.distance_control.stalled() ordrive_base.heading_control.stalled():
# Shouldn't get here but we do!breakdrive_base.stop()
Expected behavior
Drive without raising the stall flag.
The text was updated successfully, but these errors were encountered:
Describe the bug
The stall flag is always raised when doing position-based Drive Base commands.
While we almost never use the stall flag for this use case, it still shouldn't be set.
To reproduce
Expected behavior
Drive without raising the stall flag.
The text was updated successfully, but these errors were encountered: