Part Number:LAUNCHXL-CC26X2R1
你好,在5.10SDK的rtls_master中,我看到算法里面有AOA_AngleComplexProductComp这个函数,其中Zre = Xre*Yre + Xim*Yim; Zim = Xim*Yre – Xre*Yim;这两个公式能不能帮忙解释一下。
Kevin Qiu1:
这是下图中的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] valuesangle = AOA_iatan2sc((int32_t) Zim, (int32_t) Zre);return (angle * angleconst); }
TI中文支持网






