View Single Post
  #2   Spotlight this post!  
Unread 05-02-2012, 16:30
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
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.
Reply With Quote