def left(): robot.instantStop() robot.setMotorRotationSpeedReferences(motors, [0, speed])
def stop(): robot.instantStop()
def right(): robot.instantStop() robot.setMotorRotationSpeedReferences(motors, [speed, 0])
def backward(): robot.instantStop() robot.setMotorRotationSpeedReferences(motors, [-speed, -speed])
def forward(): robot.instantStop() robot.setMotorRotationSpeedReferences(motors, [speed,speed])
def forward(): robot.instantStop() robot.setMotorRotationSpeedReferences(motors, [speed, speed])