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:
David Lechner
2020-03-05 16:44:20 +01:00
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.