Code for the McPhail study of circular locomotion.