我在matlab中,把bin文件解析得到的数据进行了重新排列,然后在距离维做了fft,也就相当于距离压缩,得到了下图所示的图像。
横轴的刻度代表了chirp的采样点(256个),我想知道如何得出每个采样点对应的距离?
我的想法是 距离= c*Δf /(2*Kr),Kr是chirp的调频斜率,Δf是接收信号和发射信号混频后的正弦波频率,根据Δf = n*fs/N(fs是采样频率,N是一个chirp的采样点数,n是采样点序号),代入到前面的公式得到距离
不知道我的想法对不对?
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.
我在matlab中,把bin文件解析得到的数据进行了重新排列,然后在距离维做了fft,也就相当于距离压缩,得到了下图所示的图像。
横轴的刻度代表了chirp的采样点(256个),我想知道如何得出每个采样点对应的距离?
我的想法是 距离= c*Δf /(2*Kr),Kr是chirp的调频斜率,Δf是接收信号和发射信号混频后的正弦波频率,根据Δf = n*fs/N(fs是采样频率,N是一个chirp的采样点数,n是采样点序号),代入到前面的公式得到距离
不知道我的想法对不对?
你好,
下面sdk3.5里的代码,可以回答你的问题。
C:\ti\mmwave_sdk_03_05_00_04\packages\ti\demo\utils\mmwdemo_rfparser.c
outParams->numAdcSamples = profileCfg.numAdcSamples;
outParams->numRangeBins = mathUtils_pow2roundup(outParams->numAdcSamples);
outParams->rangeResolution =(MMWDEMO_RFPARSER_SPEED_OF_LIGHT_IN_METERS_PER_SEC * profileCfg.digOutSampleRate * 1e3) /(2.f * slope * outParams->numAdcSamples);
outParams->rangeStep = (MMWDEMO_RFPARSER_SPEED_OF_LIGHT_IN_METERS_PER_SEC * profileCfg.digOutSampleRate * 1e3) /(2.f * slope * outParams->numRangeBins);
Aoaprocdsp.c (packages\ti\datapath\dpc\dpu\aoaproc\src):
range = objIn[objInCfarIdx].rangeIdx * params->rangeStep;