Example #1
0
def processMovemovent():
    if len(q) <= 1:
        spherohelper.stop(sphero)
        return
    
    c1=q.popleft()
    c2=q.popleft()
    q.appendleft(c2)
    dist = getDistance(c1,c2)
    angle = getAngle(c1,c2)
    spherohelper.roll(sphero,dist,angle)
    return 
Example #2
0
def processMovemovent():
    if len(q) <= 1:
        spherohelper.stop(sphero)
        return

    c1 = q.popleft()
    c2 = q.popleft()
    q.appendleft(c2)
    dist = getDistance(c1, c2)
    angle = getAngle(c1, c2)
    spherohelper.roll(sphero, dist, angle)
    return
Example #3
0
def reset(request):
    q.clear()
    spherohelper.stop(sphero)
    return HttpResponse('')
Example #4
0
def reset(request):
    q.clear()
    spherohelper.stop(sphero)
    return HttpResponse('')