diff --git a/radae_rxe.py b/radae_rxe.py index 2cdaafd..c583d22 100644 --- a/radae_rxe.py +++ b/radae_rxe.py @@ -256,7 +256,8 @@ def do_radae_rx(self, buffer_complex, floats_out): self.uw_errors = 0 self.valid_count = self.Nmf_unsync ffine_range = np.arange(self.fmax-10,self.fmax+10,0.25) - tfine_range = np.arange(self.tmax-1,self.tmax+2) + tfine_range = np.arange(max(0,self.tmax-1),self.tmax+2) + print(len(rx_buf),self.tmax,tfine_range, file=sys.stderr) self.tmax,self.fmax = acq.refine(rx_buf, self.tmax, self.fmax, tfine_range, ffine_range) # testing: only insert freq offset error on first sync self.fmax += self.foff_err