Our code make robot never stop backwards

We use the exact code from caution tape and it works if we spin the motor forward as the below image. If we change the motor to reverse, it will go back but never stop. Any good suggestion to solve it? Thanks.

Sunny, there are two WHILE loops in this code (one to go forward and one to go backwards) that each have two SET blocks to adjust the motor velocity for the left and right motors. Look closely at these as they may have a typo or two.

1 Like