veeresht / CommPy

Digital Communication with Python
http://veeresht.github.com/CommPy
BSD 3-Clause "New" or "Revised" License
551 stars 179 forks source link

The output after decoding with turbo is all 0, #112

Open haixiongli opened 2 years ago

haixiongli commented 2 years ago

你好,我在使用涡轮增压编解码器时遇到了问题。使用涡轮增压解码后的输出全部为0,我不知道设置的问题在哪里。

memory = np.array(2, ndmin=1)
g_matrix = np.array((0o5, 0o7), ndmin=2)
trellis = cc.Trellis(内存,g_matrix)
interlv = inter.RandInterlv(len(msg_encode),1)
msg = cct.turbo_encode(msg_encode, trellis1 = trellis, trellis2= trellis, interleaver = interlv )
res = cct.turbo_decode(msg[0], msg[1], msg[2], trellis = trellis, noise_variance = noise_var, number_iterations = num_iter, interleaver = interlv)
haixiongli commented 2 years ago

Hi, I'm having trouble with the turbo codec. The output after decoding with turbo is all 0, I don't know where is the problem with the setup.