From 05441825536171afdbd6a60c802aa797879155d6 Mon Sep 17 00:00:00 2001 From: David Protzman Date: Sun, 24 Apr 2022 16:44:07 -0400 Subject: [PATCH] Now normalizing the IFFT outputs --- matlab/updated_scripts/transmit/create_burst.m | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/matlab/updated_scripts/transmit/create_burst.m b/matlab/updated_scripts/transmit/create_burst.m index 8d92118..e962bc6 100644 --- a/matlab/updated_scripts/transmit/create_burst.m +++ b/matlab/updated_scripts/transmit/create_burst.m @@ -142,8 +142,14 @@ function [samples] = create_burst(sample_rate, frame_configuration, add_turbo_pa time_domain_symbols = zeros(9, fft_size); for symbol_idx=1:9 - time_domain_symbols(symbol_idx,:) = ifft(fftshift(freq_domain_symbols(symbol_idx,:))); + % Move to the time domain + samples = ifft(fftshift(freq_domain_symbols(symbol_idx,:))); + + % Normalize the output of the FFT + samples = samples / fft_size; + time_domain_symbols(symbol_idx,:) = samples; + if (show_debug_plots) figure(4); subplot(3, 3, symbol_idx); @@ -152,8 +158,8 @@ function [samples] = create_burst(sample_rate, frame_configuration, add_turbo_pa end % Replace the contents of symbols 4 and 6 with the correct ZC sequence - time_domain_symbols(4,:) = create_zc(fft_size, 4); - time_domain_symbols(6,:) = create_zc(fft_size, 6); + time_domain_symbols(4,:) = create_zc(fft_size, 4) / fft_size; + time_domain_symbols(6,:) = create_zc(fft_size, 6) / fft_size; %% Add Cyclic Prefix