mirror of
https://github.com/pybricks/pybricks-projects.git
synced 2026-09-15 02:52:41 +00:00
ev3/color_sorter: set duty limit
This way, we don't torque so hard on parts that can't move
This commit is contained in:
committed by
Laurens Valk
parent
7772e76de4
commit
fa0ef54fee
@@ -42,7 +42,7 @@ while True:
|
||||
# This is done by running the motor forward until it stalls. This
|
||||
# means that it cannot move any further. From this end point, the motor
|
||||
# rotates backward by 180 degrees. Then it is in the starting position.
|
||||
feed_motor.run_until_stalled(120)
|
||||
feed_motor.run_until_stalled(120, duty_limit=30)
|
||||
feed_motor.run_angle(450, -200)
|
||||
|
||||
# Get the conveyor belt motor in the correct starting position.
|
||||
|
||||
Reference in New Issue
Block a user