From 844a077daa12430a35bfdb107341784497c2bdb9 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 27 Oct 2025 15:59:23 -0400 Subject: [PATCH] Update auto-tune.py change max value to integer --- groundstation/auto-tune.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/auto-tune.py b/groundstation/auto-tune.py index 0e909a24..b3a45c8c 100644 --- a/groundstation/auto-tune.py +++ b/groundstation/auto-tune.py @@ -72,7 +72,7 @@ if __name__ == "__main__": x = amplitude_spectrum # print(x) min_value = min(x) - max_value = max(x) + max_value = max(x) * 10 #freq_min = np.argmax(min_value) # print(np.argmax(x)) @@ -83,7 +83,7 @@ if __name__ == "__main__": offset = (np.argmax(x)*(150e3 - 10e3)/(9770 - 709)) freq_max = center_frequency + offset - print(f" {freq_max:.0f} {max_value:.2f}") + print(f" {freq_max:.0f} {max_value:.0f}") #print(f"The minimum signal is {min_value} at frequency {freq_min}") #print(min_value)