Closed tayloreisman16 closed 3 years ago
Found some errors.
TX Generation File
x0 = np.array(range(0, int(self.MM)))
x1 = np.array(range(1, int(self.MM) + 1))
if self.MM % 2 == 0:
self.ZChu0 = np.exp(-1j * (2 * np.pi / self.MM) * self.prime * (x0**2 / 2))
else:
self.ZChu0 = np.exp(-1j * (2 * np.pi / self.MM) * self.prime * (x0 * x1) / 2)
RX Reference Signal Generation
self.p = 23
xx = 0
if self.num_synch_bins % 2 == 0:
tmp0 = np.array(range(self.MM))
xx = tmp0 * tmp0
elif self.num_synch_bins % 2 == 1:
tmp0 = np.array(range(self.MM))
xx = tmp0 * (tmp0+1)
This was indeed the issue.
This code never exceeds the required 25.6 correlation value. What is the correct scalar to apply to synchdat[0], or is there something fundamentally wrong with the code above line 170 in synch_and_chan_est.py