Magnetic loop controller

I have two magnetic loop antennas. These are equipped with stepper motors. The motors are controlled from the room remotely.
The controller is connected to FT817 CAT interface. While controller is tuning the antenna the PIC MCU is reading the SWR from the FT817 and try to find the minimum value.
Tuning procedure can be manually as well.