SHARE
TWEET

Untitled

a guest Oct 21st, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while left_value or right_value < atstumas:
  2.     on = True
  3.     movingMotor(pwmpinA, pwmA, on, 732)  # Right  Wheel
  4.     movingMotor(pwmpinB, pwmB, on, 740)  # Left  Wheel
  5.     left_value = enc.Lsteps
  6.     right_value = enc.Rsteps
  7.     print(enc.Lsteps, right_value * -1)
  8.     time.sleep(0.05)
  9. movingMotor(pwmpinA, pwmA, False, 0)
  10. movingMotor(pwmpinB, pwmB, False, 0)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top