I have this line follower code (I haven’t tested it so if you see an issue with it, please let me know), and another code to stop the bot when it senses something in front of it to stop (that code has been tested by itself, in the crudely taken photo).
What is the best way to combine both of these codes to work at the same time? I’ve tried out a couple things before and they weren’t very successful, our bot was having a seizure or something lmao. A visual representation would be great if possible.
Also, side question, is there a way to code the robot to pick an option when it comes to an intersection? Like how might the bot sense it? Not important but if there is actually a way to do it and combine it, that would be awesome.
Sort of a beginner to this thing, so any help is highly appreciated. Thank you!