Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement