tayloreisman16 / LTE-GNU-Radio-Code

1 stars 0 forks source link

Correlation values do not exceed the 25.6 value to bypass the Correlation Gate. #2

Closed tayloreisman16 closed 3 years ago

tayloreisman16 commented 3 years ago
dmax_ind = np.argmax((abs(self.del_mat)))
dmax_val = np.max((abs(self.del_mat)))
if dmax_val > 0.4 * len(synchdat[0]):

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

tayloreisman16 commented 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)
tayloreisman16 commented 3 years ago

This was indeed the issue.