Skip to content

Commit

Permalink
Add wait after xv11.init() to prevent hang on getScanRanges()
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Bierwagen committed Jun 1, 2016
1 parent b9615b7 commit ec7311b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neato_driver/src/neato_driver/neato_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
__author__ = "ferguson@cs.albany.edu (Michael Ferguson)"

import serial
import time

BASE_WIDTH = 248 # millimeters
MAX_SPEED = 300 # millimeters/second
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit ec7311b

Please sign in to comment.