|
Re: stop loop with encoder
Even if your loop exits, there is nothing to set the motor speed back to 0. You need a motor set output outside the loop to stop the motor. Make sure you wire through the reference from the inside of the loop so the "set to 0" part doesn't run until the loop is complete.
|