Hello guys, my college had just introduced arduino to us last week, and this week we are going to have a robot competition on maze solving. Since im new to C programming, i have some doubts :D i have a maze, a typical maze, and a maze solver robot, which our lecturer told us to input code into the robot to let it move inside the maze, the robot has 3 sensors installed which are front, lest and right sensor respectively.So i was thinking that the robot might move slight left or right due to the wheel allignment, and ive put some codes into it, and so i defined it as when the left sensor or right sensor detects a distance less than 5cm it moves either slight left or slight right. but here comes the problem, when i want to make it turn, let say turn left, i need to use my front sensor(no problem) and the right sensor(which if i define it as less than 3 cm it turns right), but will it like crash with my code on the right sensor i defined before?
I really need help guys T_T Appreciate it! Sorry for my bad english