diff options
author | Carl Laufer <Kraken.rf.inc@gmail.com> | 2022-01-03 05:39:37 +0100 |
---|---|---|
committer | Carl Laufer <Kraken.rf.inc@gmail.com> | 2022-01-03 05:39:37 +0100 |
commit | 8d39eeb03b638ed5e6d4236a59d7ef09ee9d03ba (patch) | |
tree | 6d9a659bdb8b30f569ac0b0033f55f48cf86e639 /_receiver | |
parent | fix spectrum channel display order (diff) | |
download | krakensdr_pr-8d39eeb03b638ed5e6d4236a59d7ef09ee9d03ba.tar krakensdr_pr-8d39eeb03b638ed5e6d4236a59d7ef09ee9d03ba.tar.gz krakensdr_pr-8d39eeb03b638ed5e6d4236a59d7ef09ee9d03ba.tar.bz2 krakensdr_pr-8d39eeb03b638ed5e6d4236a59d7ef09ee9d03ba.tar.lz krakensdr_pr-8d39eeb03b638ed5e6d4236a59d7ef09ee9d03ba.tar.xz krakensdr_pr-8d39eeb03b638ed5e6d4236a59d7ef09ee9d03ba.tar.zst krakensdr_pr-8d39eeb03b638ed5e6d4236a59d7ef09ee9d03ba.zip |
Diffstat (limited to '_receiver')
-rwxr-xr-x | _receiver/krakenSDR_receiver.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/_receiver/krakenSDR_receiver.py b/_receiver/krakenSDR_receiver.py index a9e2d63..2f9c761 100755 --- a/_receiver/krakenSDR_receiver.py +++ b/_receiver/krakenSDR_receiver.py @@ -56,7 +56,7 @@ class ReceiverRTLSDR(): # These values are used by default to configure the DAQ through the configuration interface # Values are configured externally upon configuration request self.daq_center_freq = 100 # MHz - self.daq_rx_gain = 0 # [dB] + self.daq_rx_gain = [0] * 100 # [dB] self.daq_squelch_th_dB = 0 # UI interface @@ -197,6 +197,7 @@ class ReceiverRTLSDR(): # Inititalization from header - Set channel numbers if self.M == 0: self.M = self.iq_header.active_ant_chs + self.daq_rx_gain = [0] * self.M incoming_payload_size = self.iq_header.cpi_length*self.iq_header.active_ant_chs*2*int(self.iq_header.sample_bit_depth/8) if incoming_payload_size > 0: @@ -354,10 +355,15 @@ class ReceiverRTLSDR(): """ if self.receiver_connection_status: # Check connection self.daq_rx_gain = gain - + # Set center frequency cmd="GAIN" - gain_list=[297, 37] #[int(gain*10)]*self.M + + gain_list = [] + for i in range(0, self.M): + gain_list.append(int(gain[i]*10)) + + #gain_list=[297, 37] #[int(gain*10)]*self.M gain_bytes=pack("I"*self.M, *gain_list) msg_bytes=(cmd.encode()+gain_bytes+bytearray(128-(self.M+1)*4)) try: |