- RX added wiener filtering and other stuff

- Tx reordered generation of pilots

git-svn-id: http://moon:8086/svn/matlab/trunk@41 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
2015-04-29 19:24:52 +00:00
parent b3924ead7d
commit e0b9373318
2 changed files with 75 additions and 49 deletions
+12 -11
View File
@@ -59,24 +59,25 @@ for k=1:N_frames
X(data_i) = qlut(sym);
end;
if WITH_FREQ_REF == 1
[ref_c ref_p ref_a] = getRefFreq(ofdm_params.mode);
bins = c2i(N, ref_c);
X(bins) = ref_a.*(exp(2*pi*i*ref_p/1024));
if WITH_GAIN_REF == 1
[ref_c ref_p ref_a] = getRefGain(ofdm_params, ofdm_spec_occ, sym_count);
X(c2i(N, ref_c)) = ref_a.*(exp(2*pi*i*ref_p/1024));
end;
if (sym_count==0) & (WITH_TIME_REF == 1)
[ref_c ref_p ref_a] = getRefTime(ofdm_params.mode);
bins = c2i(N, ref_c);
X(bins) = ref_a.*(exp(2*pi*i*ref_p/1024));
end;
if WITH_GAIN_REF == 1
[ref_c ref_p ref_a] = getRefGain(ofdm_spec_occ, ofdm_params, sym_count);
X(c2i(N, ref_c)) = ref_a.*(exp(2*pi*i*ref_p/1024));
end;
if WITH_FREQ_REF == 1
[ref_c ref_p ref_a] = getRefFreq(ofdm_params.mode);
bins = c2i(N, ref_c);
X(bins) = ref_a.*(exp(2*pi*i*ref_p/1024));
end;
X(c2i(N, 0)) = 0;
% Modulate
xu = conj(k_fft*ifft(X, N)');
if WITH_RCWIN == 1
@@ -95,7 +96,7 @@ for k=1:N_frames
xv = [xv xs(1:Ng+N)];
if (DO_PLOT == 1)
Xs = fft(xs(Ng+1:Ng+N), N)/k_fft;
Xs = fftshift(fft(xs(Ng+1:Ng+N), N)/k_fft);
plot(0:N-1, abs(Xs(1:N)), '-*'); grid;
pause(0.01);
end