This is the code we used in our final implementation of our spherical robot.

Revision graph

The revision graph only works with JavaScript-enabled browsers.