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.

[参考译文] AWR1642:有关杂波消除的问题

Guru**** 2562120 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/639081/awr1642-question-about-clutter-removing

器件型号:AWR1642

你好

下面显示的代码用于消除毫米波 SDK 中的杂波。 pMeanVal 值的舍入是否为"1<<(obj->log2NumDopplerBIS-1)"?

如果答案是"是"、我认为对有符号数进行舍入的正确方法应该是""(int)(num < 0 ? (num - 0.5) : (num + 0.5))。 那么、以下代码是如何舍入负数的?

if (obj->clipCfg->lusterRemovalCfg.enabled)
{
uint32_t sumVal[2];
cmplx32Reim_t * pSumVal =(cmplx32Reim_t *) sumVal;
uint32_t 曲折 Val;
cmplx16Reim_t * pMeanVal =(cmplx16Reim_t *)曲折 Val (&Q);

mmwavelib vecsum ((int16_t *) inpDoppFftBuf、
(int32_t *) sumVal、
(int32_t) obj->numDopplerBins);

pMeanVal->Real =(pSumVal->Real +(1<<(obj->log2NumDoperBins-1)))>>obj->log2DopNumplerBins;
pMeanVal->imag =(pSumVal->imag +(1<<(obj->log2NumDopplerBins-1)))>>obj->log2NumDoperBins;

mmwavelib vecsubc ((int16_t *) inpDoppFftBuf、
(int16_t *) intpDoppFftBuf、
(uint32_t)曲折 Val、
(int32_t) obj->numDopplerBins);
} 

此致

Peter