Code used to control the functions of the Arduino board on the robot