Beispiel #1
0
#!/usr/bin/env python

import time
from neato_driver import xv25, BASE_WIDTH, MAX_SPEED

xv = xv25(port="/dev/ttyACM0")
time.sleep(0.1)
xv.setTestMode("on")
xv.exit()
Beispiel #2
0
#!/usr/bin/env python

import time
from neato_driver import xv25, BASE_WIDTH, MAX_SPEED


cnt = 0
while True:
    cnt += 1
    print cnt
    xv = xv25(port='/dev/ttyACM0')
    xv.getVersion()
    xv.exit()
    time.sleep(30)

Beispiel #3
0
#!/usr/bin/env python

from neato_driver import xv25, BASE_WIDTH, MAX_SPEED
import time

xv = xv25();
xv.setTestMode('on')

print xv.getTestMode()

'''
for _ in range(0, 2):
    xv.setMotors(100, 200, 50)
    time.sleep(500)
    xv.setMotors(200, 200, 50)
    time.sleep(500)
'''

xv.setTestMode('off')
xv.exit()