Hi Calvin There is some example code in the 3pi user’s guide: https://www.pololu.com/docs/0J21/all#8
This thread may help you also:
Hope this helps.