Other Parts Discussed in Thread: TIDA-010062
Tool/software:
Hi,
Recently I've been going through the TIDA-010062 reference design and the corresponding source code where SPLL for single phase grid module is used.
I have a question about the park transform in the source code of the spll_1ph_sogi.h header file.
In the inline function SPLL_1PH_SOGI_run, I found the Park Transform from alpha beta to d-q axis section, as shown below.
spll_obj->u_Q[0]=(spll_obj->cosine*spll_obj->osg_u[0]) +
(spll_obj->sine*spll_obj->osg_qu[0]);
spll_obj->u_D[0]=(spll_obj->cosine*spll_obj->osg_qu[0]) -
(spll_obj->sine*spll_obj->osg_u[0]);
For the transform, compared with the matrix, as shown in Figure 1, it seems that u_Q[0] and u_D[0] are reversed.

Figure 1
I think it should be like the following. Am I right or I don't quite understand the source code?
spll_obj->u_D[0]=(spll_obj->cosine*spll_obj->osg_u[0]) +
(spll_obj->sine*spll_obj->osg_qu[0]);
spll_obj->u_Q[0]=(spll_obj->cosine*spll_obj->osg_qu[0]) -
(spll_obj->sine*spll_obj->osg_u[0]);
I'm looking forward to hearing from you.
Best regards,
Power