laying groundwork for the rest of the robot's motor control