Hi,
I was looking into PV inverter simulation demo's control loop (demo file name : three_phase_grid_connected_pv_inverter), it looked little bit strange, where before PI controller reference Iq is compared with Id to get error on q axis (Iq controller's picture is shown below)! I was wondering any particular reason behind that? It does not seem correct to me.
Thank you for sharing your thoughts,