Other Parts Discussed in Thread: AWR2944
Hi expert:
My company are developing some applications using AWR2944,I have some questions when using SDK mmwave_mcuplus_sdk_04_02_00_03,
as below,
Q1: Why does the dB to linear formula is different between local maximum threshold and dopplerCFAR threshold?
local maximum threshold calculation in dopplerprochwaDDMA.c
/* 2D maximum value offset */
scratchVal = round(pow(10.0, (double)(obj->cfarAzimFFTCfg.localMaxCfg.azimThreshold)/20) * (1 << 10));
obj->dopplerAzimHwaCommonConfig.advStatConfig.max2DoffsetDim1 = -scratchVal;
scratchVal = round(pow(10.0, (double)(obj->cfarAzimFFTCfg.localMaxCfg.dopplerThreshold)/20) * (1 << 10));
obj->dopplerAzimHwaCommonConfig.advStatConfig.max2DoffsetDim2 = -scratchVal;
doppler CFAR threshold calculation in mss_main.c
static uint16_t MmwDemo_convertCfarToLinear(uint16_t codedCfarVal)
{
uint16_t linearVal;
float dbVal, linVal;
/* dbVal is a float value from 0-100dB. It needs to
be converted to linear scale..
First, recover float dbVal that was encoded in CLI. */
dbVal = (float)(codedCfarVal / MMWDEMO_CFAR_THRESHOLD_ENCODING_FACTOR);
/* Now convert it to linear value */
linVal = log2(pow(10, (dbVal / 20.0))) * (1 << 11) + 0.5;
linearVal = (uint16_t) linVal;
return (linearVal);
}
Q2:In Objectdetection.c function DPC_ObjDet_estimateXYZ, why is not necessary to change the value from log2 to linear when doing angle interpolation like other reference design (antilog2)
Q3:Is it possible to add interpolation mechanism in range and doppler calculation?
Thanks for reply.
Lin Henry