Software Design


Navigation

To facilitate navigation along the competition surface, we made use of the QRD1114 sensors described here.

Tape Following

PD Control was used for the robot's tape-following, correcting for when the two main tape-following QRDs were on or off the black tape. Proportional and Derivative gains were tuned with each iteration of the robot until the robot was capable of smoothly following tape along straight edges, curved edges, and in a circular path.

Map

In order to navigate successfully towards passengers and the dropoff zone, we programmed the map into the TINAH board. The nodes on the map were stored in an incidence matrix, which described the cardinal direction of each adjacent node with respect to the current node. We then developed an algorithm for calculating the optimal path to the dropoff zone from any point on the map, so the robot will know how to head to the dropoff at any point after acquiring a passenger.


Arm & Claw

The miniature city had varying distances between the road and the curb. Thus it was very important to have adaptibility in how far the arm reaches out for the passengers. The mechanical arm had programming which allowed the claw to move forward in increments, with a proximinity sensor (QRD) attached to the end of the claw to determine when the passenger was in the claw's grasp.