Exemplo n.º 1
0
def sectionB():
    sts.forward()
    time.sleep(2)
    sts.turnLeft()
    time.sleep(1)
    sts.forward()
    time.sleep(6)
    sts.stop()
    scanSuspect()
    sts.backward()
    time.sleep(8)
    sts.turnRight()
    time.sleep(1)
    sts.backward()
    time.sleep(2)
    sts.stop()
Exemplo n.º 2
0
def sectionA():
    sts.forward()
    time.sleep(4)
    sts.turnRight()
    time.sleep(1)
    sts.forward()
    time.sleep(3)
    sts.stop()
    scanSuspect()
    sts.backward()
    time.sleep(5)
    sts.turnLeft()
    time.sleep(1)
    sts.backward()
    time.sleep(4)
    sts.stop()
Exemplo n.º 3
0
def left(request):
	sts.turnLeft()
	return HttpResponse("Turning Left")