In some embodiments, a method of correcting for errors in a rotational position sensor having a sine signal and a cosine signal is presented. The method includes compiling data from the sine signal and the cosine signal over a period of rotation of a motor shaft; determining offset correction parameters from the data; correcting the data with the offset correction parameters; determining amplitude difference parameters from the data; correcting the data with the amplitude difference parameters; determining phase difference parameters from the data; correcting the data with the phase difference parameters; and using the offset correction parameters, the amplitude difference parameters, and the phase difference parameters to correct the sine signal and the cosine signal. |