diff options
author | Carl Laufer <carl@system76-pc.localdomain> | 2022-04-18 07:31:53 +0200 |
---|---|---|
committer | Carl Laufer <carl@system76-pc.localdomain> | 2022-04-18 07:31:53 +0200 |
commit | ec02dbaee763b53298a4e3982801b3a37eb4f513 (patch) | |
tree | 596cb872a9c92aa52d651d89180f5cd4e4364110 /_receiver | |
parent | Update kraken_pr_start.sh (diff) | |
download | krakensdr_pr-ec02dbaee763b53298a4e3982801b3a37eb4f513.tar krakensdr_pr-ec02dbaee763b53298a4e3982801b3a37eb4f513.tar.gz krakensdr_pr-ec02dbaee763b53298a4e3982801b3a37eb4f513.tar.bz2 krakensdr_pr-ec02dbaee763b53298a4e3982801b3a37eb4f513.tar.lz krakensdr_pr-ec02dbaee763b53298a4e3982801b3a37eb4f513.tar.xz krakensdr_pr-ec02dbaee763b53298a4e3982801b3a37eb4f513.tar.zst krakensdr_pr-ec02dbaee763b53298a4e3982801b3a37eb4f513.zip |
Diffstat (limited to '_receiver')
-rwxr-xr-x | _receiver/krakenSDR_receiver.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/_receiver/krakenSDR_receiver.py b/_receiver/krakenSDR_receiver.py index 2f9c761..59938b7 100755 --- a/_receiver/krakenSDR_receiver.py +++ b/_receiver/krakenSDR_receiver.py @@ -57,7 +57,6 @@ class ReceiverRTLSDR(): # Values are configured externally upon configuration request self.daq_center_freq = 100 # MHz self.daq_rx_gain = [0] * 100 # [dB] - self.daq_squelch_th_dB = 0 # UI interface self.data_que = data_que @@ -121,7 +120,6 @@ class ReceiverRTLSDR(): self.logger.info("CTR INIT Center freq: {0}".format(self.daq_center_freq)) self.set_center_freq(self.daq_center_freq) self.set_if_gain(self.daq_rx_gain) - self.set_squelch_threshold(self.daq_squelch_th_dB) except: errorMsg = sys.exc_info()[0] self.logger.error("Error message: "+str(errorMsg)) @@ -257,26 +255,6 @@ class ReceiverRTLSDR(): else: return 0 - def set_squelch_threshold(self, threshold_dB): - """ - Configures the threshold level of the squelch module in the DAQ FW through the control interface - """ - if self.receiver_connection_status: # Check connection - self.daq_squelch_th_dB = threshold_dB - if threshold_dB == -80: threshold = 0 - else: threshold = 10**(threshold_dB/20) - - # Assembling message - cmd="STHU" - th_bytes=pack("f",threshold) - msg_bytes=(cmd.encode()+th_bytes+bytearray(120)) - try: - _thread.start_new_thread(self.ctr_iface_communication, (msg_bytes,)) - except: - errorMsg = sys.exc_info()[0] - self.logger.error("Unable to start communication thread") - self.logger.error("Error message: {:s}".format(errorMsg)) - def ctr_iface_init(self): """ Initialize connection with the DAQ FW through the control interface |