diff --git a/groundstation/program_fm.py b/groundstation/program_fm.py index 01141fed..f68056b3 100644 --- a/groundstation/program_fm.py +++ b/groundstation/program_fm.py @@ -13,10 +13,10 @@ if __name__ == "__main__": print("There are more arguments!") rxf = float(sys.argv[2]) print("Programming FM module!\n") - tx = "{:.4f}".format(txf) - rx = "{:.4f}".format(rxf) - print(tx) - print(rx) + tx = "{:.4f}".format(txf/1000000.0) + rx = "{:.4f}".format(rxf/1000000.0) + print(f"Transmit frequency: {tx}") + print(f"Receive frequency: {rx}") system("gpio -g mode 20 out") system("gpio -g write 20 1")