Exemplo n.º 1
0
from robot import robot
import time

robot = robot()

speed = 100

robot.setMotorRotationSpeedReferences([0,1], [speed, speed])

print "Press Ctrl+C to exit"
while True:
	time.sleep(1)
	

robot.terminate()
Exemplo n.º 2
0
def right():
	robot.instantStop()
	robot.setMotorRotationSpeedReferences(motors, [speed, 0])
Exemplo n.º 3
0
def left():
	robot.instantStop()
	robot.setMotorRotationSpeedReferences(motors, [0, speed])
Exemplo n.º 4
0
def backward():
	robot.instantStop()
	robot.setMotorRotationSpeedReferences(motors, [-speed, -speed])
Exemplo n.º 5
0
def forward():
	robot.instantStop()
	robot.setMotorRotationSpeedReferences(motors, [speed,speed])
Exemplo n.º 6
0
from robot import robot
import time

robot = robot()

speed = 100

robot.setMotorRotationSpeedReferences([0, 1], [speed, speed])

print "Press Ctrl+C to exit"
while True:
    time.sleep(1)

robot.terminate()
Exemplo n.º 7
0
def left():
    robot.instantStop()
    robot.setMotorRotationSpeedReferences(motors, [0, speed])
Exemplo n.º 8
0
def right():
    robot.instantStop()
    robot.setMotorRotationSpeedReferences(motors, [speed, 0])
Exemplo n.º 9
0
def forward():
    robot.instantStop()
    robot.setMotorRotationSpeedReferences(motors, [speed, speed])
Exemplo n.º 10
0
def backward():
    robot.instantStop()
    robot.setMotorRotationSpeedReferences(motors, [-speed, -speed])