Code Representation

Main Description

The main function performs alternating functions of navigating the course then performing tasks and repeating until the robot has reached the end of the course. The navigation function will utilize the shaft encoding sensors and QR code to primarily move the robot. The task functions will primarily use the wheels and servo motor for the arm to perform the task. The task functions will also utilize sensors to help perform the tasks.

Main Representation

GoTo Function

GoTo moves the robot from its current location to another specified x and y location in a straight line path. This function requires that the robot can move from its current position to the new position along a straight line path. This function was not used, but was included in the final code due to the difficulties with RPS. Future improvements would include utilizing this function for all movement.