Part Number: TMS320F28377D
Hello,
I am trying to execute abc to dq transformation in TMS320F28377D processor using solar library in control suite. I get meaningful results for alpha and beta values, however d and q values are always zero. It is because sin and cos values are zero. Relevant code section is below.
//Above these clarke transformation is performed.
park1.alpha = clarke1.alpha;
park1.beta = clarke1.beta;
park1.zero = clarke1.zero;
park1.sin = (float)sin((spll1.theta[1]));
park1.cos = (float)cos((spll1.theta[1]));
PARK_F_FUNC(&park1);
Function for park transformation is below.
void PARK_F_FUNC(PARK_F *v)
{
v->d= v->alpha*v->cos + v->beta*v->sin;
v->q=-v->alpha*v->sin + v->beta*v->cos;
v->z=v->zero;
}

As it can be seen, in the debug section sin and cos values are always zero.
Edit: Theta values are added.
Theta values, as radian.

I also get the following warnings when I build the project.
- #225-D function "cos" declared implicitly
- #225-D function "sin" declared implicitly
- #225-D function "pow" declared implicitly
Thank you in advance.