Antenna Tracker pointing 180 degrees out

Hi,

I am currently building an antenna tracker. I have almost got it to work but I’m having trouble with the pan. It is pointing 180 degrees out. In mission planner it is showing an orange line pointing towards my drone, and the red line is pointing 180 degrees away. When I fly my drone away it follows perfectly but 180 degrees out.

ahrs_orientation is set correctly, and the tilt is following the drone correctly (if the pan was working correctly)

Currently pulling my hair out looking for a setting to fix this.

I have tried:

  • re-calibrating accelerometer
  • re-calibrating compass
  • tried legacy firmware (v1.1.0)

My setup is:
Pixhawk 4 + GPS
Continuous rotation servos (modified MG996)

Any help is appreciated!