This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

The calculation of AOA angel,s process

hi:

 The sdk is simplelink_cc2640r2_sdk_3_10_00_15 used by me.

 I have some trouble with calculating the angel of aoa.

 The code is showed in below.

int32_t AOA_AngleComplexProductComp(int32_t Xre, int32_t Xim, int32_t Yre, int32_t Yim)
{
int32_t Zre, Zim;
int16_t angle;

// X*conj(Y)
Zre = Xre*Yre + Xim*Yim;
Zim = Xim*Yre - Xre*Yim;

// Angle. The angle is returned in 256/2*pi format [-128,127] values
angle = AOA_iatan2sc((int32_t) Zim, (int32_t) Zre);

return (angle * angleconst);
}

Firstly,the X*conj(Y) gets a new result. i think that the new result is difference of angel .So the arctant function can get the final result using  Zre  and Zim .

l cant understand the process of AOA_iatan2sc and angle * angleconst.

please ti gives some explanation about it or give some info about the theory.