Fixup mock lidar

This commit is contained in:
Piv
2020-03-09 23:06:58 +10:30
parent 50d8923ad0
commit 71a8ed8468
2 changed files with 3 additions and 1 deletions

View File

@@ -38,6 +38,8 @@ class LidarCache():
# Create the 0MQ socket first. This should not be passed between threads.
self._mFactory = sender
# Batch over scans, so we don't need to do our own batching to determine groups
# TODO: Implement custom batching, as iter_scans can be unreliable
for scan in self.lidar.iter_scans(min_len=self.measurements):
print('Got %d measurments' % (len(scan)))
if(not self.run):

View File

@@ -26,7 +26,7 @@ class MockLidar:
"""
self._iter = scan_iter
def iter_scans(self, measurements=100):
def iter_scans(self, min_len=100):
return self._iter
def get_health(self):