Exemple #1
0
 def init(self):
     packetLength = wifi.encode(np.zeros(length, int), rate).size
     self.kwargs['maximum'] = int(packetLength * 4)
     self.kwargs['trigger'] = int(packetLength * 2)
     self.dtype = np.complex64
     super(ContinuousReceiver, self).init()
     self.inputProcessor = audioLoopback.InputProcessor(
         Fs, Fc, upsample_factor)
Exemple #2
0
 def init(self):
     packetLength = wifi.encode(np.zeros(100, int), 0).size
     self.kwargs['maximum'] = int(packetLength * 4)
     self.kwargs['trigger'] = int(packetLength * 1)
     self.dtype = np.complex64
     super(ContinuousReceiver, self).init()
     Fc = self.kwarg('Fc')
     Fs = self.kwarg('Fs')
     upsample_factor = self.kwarg('upsample_factor')
     self.inputProcessor = audioLoopback.InputProcessor(
         Fs, Fc, upsample_factor)
Exemple #3
0
 def init(self):
     self.mtu = self.kwargs['mtu']
     packetLength = wifi.encode(np.zeros(self.mtu, int), 0).size
     self.kwargs['maximum'] = int(packetLength * 4)
     self.kwargs['trigger'] = int(packetLength * 2)
     self.dtype = np.complex64
     super(ContinuousReceiver, self).init()
     self.channel = self.kwargs['channel']
     self.packetSink = self.kwargs['packetSink']
     self.inputProcessor = audioLoopback.InputProcessor(
         self.channel.Fs, self.channel.Fc, self.channel.upsample_factor)