https://github.com/XRobots/miniDogV2
The code's a bit of a mess -- James is clearly not a software engineer first. This is totally understandable, given that he does so many other things!
When I first saw the code, I thought about doing a refactoring pass and making a pull request. It would be painful to test correctness without the hardware, and I don't want to make things worse, so I haven't.