Bugfix: Working on SDR RX

This commit is contained in:
Logan Cusano
2022-01-04 00:32:19 -05:00
parent b7fca9d506
commit 521ab15448

View File

@@ -18,21 +18,18 @@ class GQRXHandler():
tel_conn = self.create_telnet_connection()
print(f"Changing freq to {freq}")
tel_conn.write(bytes(f"F {int(freq)}", 'utf-8'))
tel_conn.read_all()
tel_conn.close()
def change_squelch(self, squelch):
tel_conn = self.create_telnet_connection()
print(f"Changing squelch to {squelch}")
tel_conn.write(bytes(f"L SQL {float(squelch)}", 'utf-8'))
tel_conn.read_all()
tel_conn.close()
def change_mode(self, mode):
tel_conn = self.create_telnet_connection()
print(f"Changing mode to {mode}")
tel_conn.write(bytes(f"M {str(mode)}", 'utf-8'))
tel_conn.read_all()
tel_conn.close()
def set_all_settings(self, mode, squelch, freq):