How to reverse Bipolor motor direction with Joystick

 centerYValue = abs(centerYValue);//If negative, turns nonnegative

That is where you threw away the information about whether the joystick was pushed forward or back. Perhaps you should take note of the sign of the value BEFORE you destroy it.