Calculates encoder constants

Sorry about the weird title. This is the program that we used to calculate
the encoder values.