logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

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

expert
lahiruEducation
(/5)

961 Answers

Hire Me
expert
Francis OrtizPsychology
(5/5)

731 Answers

Hire Me
expert
Bhupesh SinglaComputer science
(5/5)

537 Answers

Hire Me
expert
Douglas RichardsPsychology
(5/5)

513 Answers

Hire Me
Others

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.

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. 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

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme