bug fix
This commit is contained in:
parent
7927e7241c
commit
f051687899
|
|
@ -47,7 +47,7 @@ def convert_vector_to_mat(
|
||||||
x, y = rx_locs[i, :] / block_size
|
x, y = rx_locs[i, :] / block_size
|
||||||
else:
|
else:
|
||||||
x, y = (rx_locs[i, :] + offset) / block_size
|
x, y = (rx_locs[i, :] + offset) / block_size
|
||||||
result[int(x), int(y)] = rx_rsses[i]
|
result[int(round(x)), int(round(y))] = rx_rsses[i]
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ def test():
|
||||||
|
|
||||||
# add walls
|
# add walls
|
||||||
wall_penetration = -30.0
|
wall_penetration = -30.0
|
||||||
wall_reflection = -10.0
|
wall_reflection = -15.0
|
||||||
glass_penetration = -3.0
|
glass_penetration = -3.0
|
||||||
glass_reflection = -3.0
|
glass_reflection = -3.0
|
||||||
# walls
|
# walls
|
||||||
|
|
@ -53,7 +53,7 @@ def test():
|
||||||
|
|
||||||
plotSpace(spacemap, cminmax=(-50, 0.0))
|
plotSpace(spacemap, cminmax=(-50, 0.0))
|
||||||
|
|
||||||
rx_locs = [SpaceBlock(3.2, 3.3), SpaceBlock(3.2, 3.4), SpaceBlock(3.2, 3.5)]
|
rx_locs = [SpaceBlock(1.0, 4.3), SpaceBlock(4.2, 4.4), SpaceBlock(4.4, 4.4)]
|
||||||
spacemap.traceRays(-40, SpaceBlock(3.2, 3.2))
|
spacemap.traceRays(-40, SpaceBlock(3.2, 3.2))
|
||||||
for rx_loc in rx_locs:
|
for rx_loc in rx_locs:
|
||||||
rx_loc_rss, rx_loc_paths = spacemap.traceRay(rx_loc)
|
rx_loc_rss, rx_loc_paths = spacemap.traceRay(rx_loc)
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ def plotSingle(filepath, args):
|
||||||
if data is None:
|
if data is None:
|
||||||
print("err: failed to load file {}".format(filepath))
|
print("err: failed to load file {}".format(filepath))
|
||||||
return
|
return
|
||||||
|
|
||||||
plotRSS(data)
|
plotRSS(data)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue