Hi
Can you tell us that output you need .
Output degrees for joystick in the centre.
Output degrees for X joystick fully left and Y centre (-X,Y) (0, 512)
Output degrees for Y joystick fully right and X centre (+X, +Y) (1023,512)
Also tan and other trig functions work in Radians, not Degrees.
Tom... ![]()