Hi there,
In order to achieve unity power factor control, the phase of the AC voltage needs to be obtained. The phase is obtained through a phase-locked loop (PLL).
Take a look for single phase control structure of the PLL ,
Another might be understandable
For such similar way I want...