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.

MMWCAS-RF-EVM: Velocity scaling issue when processing data

Part Number: MMWCAS-RF-EVM
Other Parts Discussed in Thread: AWR1243

Tool/software:

I want to plot range doppler map proccessing bin files using matlab. We gatherd bin files from MMCAS-RF-EVM+MMCAS-DSP-EVM (AWR1243 cascade version)". There is a issue velocity axis of range doppler map that we plotted. Can any one give me a guidence to set correct scale for this velocity axis.This is code part. Can anyone see and help me to solve this velocity scale issue.
"""% Extract the chirp ADC matrix for all loops and the selected antenna
chirp_ADC_matrix = adcData1Complex(:, :, antennaIdx, :);

% Remove singleton dimensions
chirp_ADC_matrix = squeeze(chirp_ADC_matrix);
disp(size(chirp_ADC_matrix))

% Perform 2D FFT along both the range (ADC samples) and Doppler (chirps) dimensions
range_fft = fft(chirp_ADC_matrix, Nfft_range, 1); % FFT across range (ADC samples)
doppler_fft = fftshift(fft(range_fft, Nfft_doppler, 2), 2); % FFT across Doppler (chirps), with shift

% Ensure doppler_fft is a 2D matrix for plotting
doppler_fft = squeeze(doppler_fft(:, :, 1)); % Extract the first chirp for visualization

% Calculate the range and velocity axis values
range_res = c / (2 * sweepBandwidth); % Range resolution (meters)
max_range = range_res * (Nfft_range - 1); % Maximum measurable range
range_axis = linspace(0, max_range, Nfft_range); % Range axis for plotting

doppler_res = 1 / (numChirpPerLoop * chirpDuration); % Doppler resolution (Hz)
max_doppler = doppler_res * (Nfft_doppler / 2); % Maximum Doppler shift (Hz)
doppler_axis = linspace(-max_doppler, max_doppler, Nfft_doppler);

% Convert Doppler frequency to velocity (m/s)
velocity_axis = doppler_axis * (c / (2 * fc)); % Velocity axis using Doppler shift
"""