Add dummy motor_pin arg, and print RPLidar info
@@ -27,7 +27,7 @@ pygame.display.update()
# Setup the RPLidar
PORT_NAME = '/dev/ttyUSB0'
-lidar = RPLidar(PORT_NAME)
+lidar = RPLidar(None, PORT_NAME)
# used to scale data to fit on the screen
max_distance = 0
@@ -51,6 +51,7 @@ def process_data(data):
scan_data = [0]*360
try:
+ print(lidar.info)
for scan in lidar.iter_scans():
for (_, angle, distance) in scan:
scan_data[min([359, floor(angle)])] = distance
