In automotive mrr demo, the calibration coefficients are hard coded here:
C:\data-nobackup\2022\ToolboxAutomotive\mmwave_automotive_toolbox_3_2_0__win\mmwave_automotive_toolbox_3_2_0\labs\lab0007_medium_range_radar\src\dss\dss_main.c
void rxGainPhaseParam_Init(MmwDemo_DSS_DataPathObj* obj)
{
int32_t indx = 0;
if (obj->processingPath == MAX_VEL_ENH_PROCESSING)
{
obj->rxChPhaseComp[indx].imag = 5863;
obj->rxChPhaseComp[indx].real = 19158;indx++;
obj->rxChPhaseComp[indx].imag = 2858;
obj->rxChPhaseComp[indx].real = 23451;indx++;
obj->rxChPhaseComp[indx].imag = 4569;
obj->rxChPhaseComp[indx].real = 22093;indx++;
obj->rxChPhaseComp[indx].imag = 0;
obj->rxChPhaseComp[indx].real = 16399;indx++;
}
else if (obj->processingPath == POINT_CLOUD_PROCESSING)
{
obj->rxChPhaseComp[indx].imag = 21646;
obj->rxChPhaseComp[indx].real = 7035;indx++;
obj->rxChPhaseComp[indx].imag = 21172;
obj->rxChPhaseComp[indx].real = 18420;indx++;
obj->rxChPhaseComp[indx].imag = 15490;
obj->rxChPhaseComp[indx].real = 21080;indx++;
obj->rxChPhaseComp[indx].imag = -3905;
obj->rxChPhaseComp[indx].real = 25130;indx++;
obj->rxChPhaseComp[indx].imag = 0;
obj->rxChPhaseComp[indx].real = 16399;indx++;
obj->rxChPhaseComp[indx].imag = -7985;
obj->rxChPhaseComp[indx].real = 18443;indx++;
obj->rxChPhaseComp[indx].imag = -10962;
obj->rxChPhaseComp[indx].real = 15291;indx++;
obj->rxChPhaseComp[indx].imag =-17653;
obj->rxChPhaseComp[indx].real = 3133;indx++;
obj->rxChPhaseComp[indx].imag = 386;
obj->rxChPhaseComp[indx].real = -17208;indx++;
obj->rxChPhaseComp[indx].imag = 8587;
obj->rxChPhaseComp[indx].real = -18744;indx++;
obj->rxChPhaseComp[indx].imag = 11857;
obj->rxChPhaseComp[indx].real = -15772;indx++;
obj->rxChPhaseComp[indx].imag = 18493;
obj->rxChPhaseComp[indx].real = -2907;indx++;
}
}
But in some other TI demos, the imag and real are presented in float number, such as
RX2 | |
Real | Imag |
-0.58804 | -0.5573 |
0.15628 | 0.75375 |
-0.0722 | 0.66623 |
-0.39322 | -0.6814 |
-0.40555 | -0.6771 |
Can you please tell me what is rule for convert? divide the number in mrr demo by 10000?
Kind regards