Update auto-tune.py only print results

fiabv4-auto-tune
Alan Johnston 2 months ago committed by GitHub
parent e219ab4285
commit f2c44413a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -7,12 +7,12 @@ if __name__ == "__main__":
graph = 'n'
center_frequency = 434.7e6
if (len(sys.argv)) > 0:
print("There are arguments!")
# print("There are arguments!")
center_frequency = float(sys.argv[1]) - 200e3
if (center_frequency == 0):
center_frequency = 434.7e6
if (len(sys.argv)) > 1:
print("There are more arguments")
# print("There are more arguments")
if (sys.argv[2] == 'g') or (sys.argv[2] == '-g'):
graph = 'y'
@ -32,7 +32,7 @@ if __name__ == "__main__":
# signal = sdr.read_samples(64*1024) #256
signal = sdr.read_samples(duration*sampling_rate).real #256
print(f"Center frequency is {center_frequency}")
# print(f"Center frequency is {center_frequency}")
sdr.close()

Loading…
Cancel
Save

Powered by TurnKey Linux.