Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while left_value or right_value < atstumas:
- on = True
- movingMotor(pwmpinA, pwmA, on, 732) # Right Wheel
- movingMotor(pwmpinB, pwmB, on, 740) # Left Wheel
- left_value = enc.Lsteps
- right_value = enc.Rsteps
- print(enc.Lsteps, right_value * -1)
- time.sleep(0.05)
- movingMotor(pwmpinA, pwmA, False, 0)
- movingMotor(pwmpinB, pwmB, False, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement