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()
Beispiel #2
0
def right():
	robot.instantStop()
	robot.setMotorRotationSpeedReferences(motors, [speed, 0])
Beispiel #3
0
def left():
	robot.instantStop()
	robot.setMotorRotationSpeedReferences(motors, [0, speed])
Beispiel #4
0
def backward():
	robot.instantStop()
	robot.setMotorRotationSpeedReferences(motors, [-speed, -speed])
Beispiel #5
0
def forward():
	robot.instantStop()
	robot.setMotorRotationSpeedReferences(motors, [speed,speed])
Beispiel #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()
Beispiel #7
0
def left():
    robot.instantStop()
    robot.setMotorRotationSpeedReferences(motors, [0, speed])
Beispiel #8
0
def right():
    robot.instantStop()
    robot.setMotorRotationSpeedReferences(motors, [speed, 0])
Beispiel #9
0
def forward():
    robot.instantStop()
    robot.setMotorRotationSpeedReferences(motors, [speed, speed])
Beispiel #10
0
def backward():
    robot.instantStop()
    robot.setMotorRotationSpeedReferences(motors, [-speed, -speed])