你好,在5.10SDK的rtls_master中,我看到算法里面有AOA_AngleComplexProductComp这个函数,其中Zre = Xre*Yre + Xim*Yim; Zim = Xim*Yre - Xre*Yim;这两个公式能不能帮忙解释一下。
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.
你好,在5.10SDK的rtls_master中,我看到算法里面有AOA_AngleComplexProductComp这个函数,其中Zre = Xre*Yre + Xim*Yim; Zim = Xim*Yre - Xre*Yim;这两个公式能不能帮忙解释一下。
这是下图中的IQ复数运算,公式如下,上面公式是计算分别得到实部和虚部

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);
}