actually I think it's working but making impulse responses by hand is finnicky
This commit is contained in:
parent
d4a1105f11
commit
e16f191edb
@ -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
|
||||||
|
4
main.py
4
main.py
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user