A Pololu Zumo Robot but use it’s 6 sensors to navigate the attached course.
It must begin at the short line at the top;
You must calibrate it (code provided) and then use a button counter to press the button on pin 12.
The button counter must determine whether it is an odd or even number of presses within 5 seconds and remember.
The Zumo must then use border detection to make it’s way through the “L” shape outline to the main centre line (green circle marks the beginning).
Follow the main centre line to the “U” shape, and then turn LEFT if the button was pressed an ODD amount of times, or RIGHT if it was pressed an EVEN amount of times.
It must then follow the line to the end and stop when it sees white.
Currently I have code that can successfully calibrate, successfully navigate the U shape using boarder detection, follow the centre line to the U shape and stop on the white “break” between the U shape and the line (red circle marks this).
I also have successful code that recognises odd or even button presses within 5 seconds and can act accordingly.
However I cannot get these files to work together as they are meant to. The line following code seems to affect the toggle code even when separated into a void statement to be called upon when needed.
All I need is the code to be assembled correctly.
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of