From be6e31bf71be9a99b8e29ede9c42759482b1040a Mon Sep 17 00:00:00 2001 From: drowe67 Date: Wed, 4 Dec 2024 06:12:40 +1030 Subject: [PATCH] attempt at fixing timing est corner case --- radae_rxe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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