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.
Hi TI experts,
In the 'motion and presence detection' of SDK 5.4.0.1, in dpc.c, line 1649 calculates params->rangeStep as follows:
params->rangeStep = (MMWDEMO_RFPARSER_SPEED_OF_LIGHT_IN_METERS_PER_SEC * (gMmwMssMCB.adcSamplingRate * 1.e6)) / (2.f * slope * (2*params->numRangeBins));
If I change the calculation to:
params->rangeStep = (MMWDEMO_RFPARSER_SPEED_OF_LIGHT_IN_METERS_PER_SEC * gMmwMssMCB.adcSamplingRate * 1e6) / (2.f * slope * gMmwMssMCB.profileComCfg.h_NumOfAdcSamples);
Would there be any issues?
Hi,
Thank you for your query. Please allow us a couple of days to respoond
Regards
Hello,
There would be issues with this code if numAdcSamples is configured to be something other than a power of 2. When numAdcSamples is a power of 2 then numRangeBins = numAdcSamples/2 however if numAdcSamples is not a power of 2, then numRangeBins = (next power of 2 of numAdcSamples)/2.
Best Regards,
Josh