This is some code I wrote for the Logomotion robot that Richard designed.