I expect your y% x% values are port values, but for anyone who is going to use this in general, I think the parameters have to be floats. Agreed. I went to integers because what comes out of the compass module is 16bit, 2s compliment, numbers which I convert to signed integers but you are right tha...