you can do a similar thing with y axis too ,
my routine will give the same result as the scale offset method its just much quicker and simpler.
don't forget the ATN result is in radians so deg = atnresult*360/256
I suspect that without using floats all round for these calcs the resulting resolution may be a little disappointing , but its worth a look
Bookmarks