actually I think it's working but making impulse responses by hand is finnicky

This commit is contained in:
David Lenfesty 2019-08-25 20:28:39 -06:00
parent d4a1105f11
commit e16f191edb
2 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,10 @@ import scipy.interpolate
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
channel_response = np.array([-1 - 1j, 0, 0, 1, 0, 0, -1 - 1j]) # Dirac delta function response, no change
#channel_response = np.array([0, 0, 0, 1, 0, 0, 0])
channel_response = np.array([0, 0, 1, 0.5, 0.25, 0.125])
# How do I sync this across two files? # How do I sync this across two files?
# figure it out later # figure it out later

View File

@ -59,11 +59,11 @@ if __name__ == '__main__':
ofdm_time = np.fft.ifft(modulated) ofdm_time = np.fft.ifft(modulated)
tx = cp_add(ofdm_time, 4) tx = cp_add(ofdm_time, 16)
rx = channel.sim(tx) rx = channel.sim(tx)
ofdm_cp_removed = cp_remove(rx, 4) ofdm_cp_removed = cp_remove(rx, 16)
to_equalize = np.fft.fft(ofdm_cp_removed) to_equalize = np.fft.fft(ofdm_cp_removed)