示例#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()
示例#2
0
文件: no_sleep.py 项目: lekeux/xv_x86
#!/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)

示例#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()