My motor goes forward but when I reverse it each wheel goes a different direction

My motor goes forward but when I reverse it each wheel goes a different direction.

Which example code did you run that caused this issue?

Have you performed the calibration for the PiCar-X? Please execute the following commands:

cd ~/picar-x/example/calibration
sudo python3 calibration.py
Follow the calibration steps in the tutorial:
Calibration Tutorial.

If there are issues with the motors running in the wrong direction, please follow Step 7 to calibrate the motors. You can press E to test if the car can move forward. If it cannot, use the number keys 4 and 5 to select the left and right motors, then press Q to calibrate their rotation direction. Ensure both motors are calibrated to rotate in the same direction.

After calibration, press the Spacebar to save the calibration parameters. The system will prompt you to enter y to confirm, and then press Ctrl+C to exit the program and complete the calibration.

Try running the example again to see if the issue is resolved.