Permalink
Browse files

Add wait after xv11.init() to prevent hang on getScanRanges()

  • Loading branch information...
Samuel Bierwagen
Samuel Bierwagen committed Jun 1, 2016
1 parent b9615b7 commit ec7311ba844fdee7210082bf2208d17b2a944ac8
Showing with 3 additions and 0 deletions.
  1. +3 −0 neato_driver/src/neato_driver/neato_driver.py
@@ -33,6 +33,7 @@
__author__ = "ferguson@cs.albany.edu (Michael Ferguson)"
import serial
import time
BASE_WIDTH = 248 # millimeters
MAX_SPEED = 300 # millimeters/second
@@ -106,6 +107,8 @@ def __init__(self, port="/dev/ttyACM0"):
# turn things on
self.setTestMode("on")
self.setLDS("on")
print "[INFO] Waiting for LIDAR sensor to spin up"
time.sleep(1)
def exit(self):
self.setLDS("off")

0 comments on commit ec7311b

Please sign in to comment.