New answers tagged

1

As a couple people already pointed out, you're using for loops that are unnecessary, and will cause you to get the wrong measurements. You're better off just using myservo.write(); to set your servo to positions 0 and 180. Additionally you never check to see if there's an obstacle infront of your robot. Instead, your robot immediately tries turn right or ...


Top 50 recent answers are included