Fix the mapbytes, as getmap doesn't return anything.

This commit is contained in:
Piv
2020-02-17 22:19:50 +10:30
parent 253e25d83d
commit 2e0d8ad345

View File

@@ -75,7 +75,9 @@ class SlamStreamer:
# Update SLAM with current Lidar scan and scan angles
slam.update(distances, scan_angles_degrees=angles)
print('Map updated')
self._push_map(slam.getmap(mapbytes), slam.getpos())
slam.getmap(mapbytes)
self._push_map(mapbytes, slam.getpos())
def _push_map(self, mapbytes, location):
'''