I raised the duty cycle on moveForward to 50 percent
I raised the threshhold on the senosr so it will get closer
This stops the robot after every iteration.The problem is that it always senses a wall. I'll lower the threshhold.
I reset the inch bits so it doesn't reset. I also raised the threshhold. The robot still always sees a wall and turns.
I had the code wrong in that I needed to be less than the threshhold. I also shortened the length of the turns and moveForward.
I changed the main code to if else statements so the robot is not trying to do too much at once.
I changed my algorithm and decided to do a left wall follower. I did a right wall follower and got B funcitonality but had trouble getting aroung the sharp turn.Becusae Mustang Sally naturally turns left when moving forward, I made her a left wall follower, which helped get around the sharp turn and get A and Bonus Funcitonality.