logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

A Pololu Zumo Robot but use its 6 sensors to navigate the attached course

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

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.

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

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. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

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

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

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

. 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 Sea Ports. Here are the classes and their instance variables we wish to define:

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

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

663 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

614 Answers

Hire Me
expert
Husnain SaeedComputer science

997 Answers

Hire Me
expert
Atharva PatilComputer science

913 Answers

Hire Me

Get Free Quote!

426 Experts Online