The joystick appears to have a deadzone in the middle, from 410 to 450. You then map all values from 100 to 800, including those in the deadzone (since the second if is not an else if) to the range from 70 to 180. I don't see why you are doing this.
The joystick appears to have a deadzone in the middle, from 410 to 450. You then map all values from 100 to 800, including those in the deadzone (since the second if is not an else if) to the range from 70 to 180. I don't see why you are doing this.