diff --git a/targets/PROJECTS/CORRIDOR/generation_ca.m b/targets/PROJECTS/CORRIDOR/generation_ca.m index 58c2775c8a..22036a3737 100644 --- a/targets/PROJECTS/CORRIDOR/generation_ca.m +++ b/targets/PROJECTS/CORRIDOR/generation_ca.m @@ -1,11 +1,11 @@ %% this script generates the signals for the CORRIDOR channel sounding campaing -%addpath('../../../openair1/SIMULATION/LTE_PHY/') +addpath('../../../openair1/SIMULATION/LTE_PHY/') %addpath('../../../openair1/PHY/LTE_ESTIMATION/') -%addpath('../../../openair1/PHY/LTE_REFSIG/') +addpath('../../../openair1/PHY/LTE_REFSIG/') %addpath('../../../targets/ARCH/EXMIMO/USERSPACE/OCTAVE') -rng(42); %make sure seed random numbers are alwyas the same +rand('seed',42); %make sure seed random numbers are alwyas the same % load the LTE sync sequence primary_synch; @@ -84,5 +84,5 @@ hold off plot(linspace(-sample_rate/2,sample_rate/2,length(s)),20*log10(abs(fftshift(fft(s,[],2))))) %% save for later use (channel estimation and transmission with the SMBV) -save('ofdm_pilots_sync_30MHz.mat','-v7','s','f1','f2','f3','num_carriers','num_zeros','prefix_length','num_symbols_frame','preamble_length'); +save('ofdm_pilots_sync_30MHz.mat','-v7','s1','s2','s3','f1','f2','f3','num_carriers','num_zeros','prefix_length','num_symbols_frame','preamble_length'); mat2wv(s(1,:), 'ofdm_pilots_sync_30MHz.wv', sample_rate, 1); diff --git a/targets/PROJECTS/CORRIDOR/tx_sig_ca.m b/targets/PROJECTS/CORRIDOR/tx_sig_ca.m index 4372388d6d..126e32d137 100644 --- a/targets/PROJECTS/CORRIDOR/tx_sig_ca.m +++ b/targets/PROJECTS/CORRIDOR/tx_sig_ca.m @@ -4,6 +4,8 @@ % card4 - card5: 10MHz, 2 channels each, s2, freq 2605 MHz % card6: 5MHz, 4 channels, s3, freq 771.5 MHz +%load('ofdm_pilots_sync_30MHz.mat'); + addpath('../../../targets/ARCH/EXMIMO/USERSPACE/OCTAVE') limeparms; @@ -86,9 +88,9 @@ for card=6:min(6,num_cards-1) end amp = pow2(14)-1; -s1p = 2*floor(amp*(s1./max([real(s1) imag(s1)]))); -s2p = 2*floor(amp*(s2./max([real(s2) imag(s2)]))); -s3p = 2*floor(amp*(s3./max([real(s3) imag(s3)]))); +s1p = 2*floor(amp*(s1./max([real(s1(:)); imag(s1(:))]))); +s2p = 2*floor(amp*(s2./max([real(s2(:)); imag(s2(:))]))); +s3p = 2*floor(amp*(s3./max([real(s3(:)); imag(s3(:))]))); for card=min(6,num_cards-1):-1:6 oarf_send_frame(card,s3p.',16);