tolerate a bit noise above noise floor

This commit is contained in:
HappyZ 2019-06-06 10:14:17 -05:00
parent 254853f131
commit a7a0a9d604
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def convert_mat_to_vector(
width, length = mat.shape width, length = mat.shape
for i in range(width): for i in range(width):
for j in range(length): for j in range(length):
if mat[i, j] <= NOISE_FLOOR: if mat[i, j] <= NOISE_FLOOR + 5:
continue continue
rx_locs.append([(i + 0.5) * block_size, (j + 0.5) * block_size]) rx_locs.append([(i + 0.5) * block_size, (j + 0.5) * block_size])
rx_rsses.append(mat[i, j]) rx_rsses.append(mat[i, j])