Skip to content

Commit

Permalink
oops..
Browse files Browse the repository at this point in the history
  • Loading branch information
baskiton committed Aug 16, 2023
1 parent 24d1fef commit c0e76e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sats_receiver/systems/apt.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,13 @@ def _read_telemetry(self):
else:
best_qni_a = self.FRAME_HEIGHT_HF
best_cqs_a = corr_a[x_a:best_q_a + self.FRAME_HEIGHT_HF]
x_a = best_q_b - self.FRAME_HEIGHT_HF
if x_a < 0:
best_qni_b = best_q_a
x_a = 0
x_b = best_q_b - self.FRAME_HEIGHT_HF
if x_b < 0:
best_qni_b = best_q_b
x_b = 0
else:
best_qni_b = self.FRAME_HEIGHT_HF
best_cqs_b = corr_b[x_a:best_q_b + self.FRAME_HEIGHT_HF]
best_cqs_b = corr_b[x_b:best_q_b + self.FRAME_HEIGHT_HF]

if np.max(best_cqs_a) >= np.max(best_cqs_b):
best = best_q_a - best_qni_a + np.argmax(best_cqs_a)
Expand Down

0 comments on commit c0e76e0

Please sign in to comment.