예제 #1
0
파일: views.py 프로젝트: bipul21/isphero
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 
예제 #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
예제 #3
0
파일: views.py 프로젝트: bipul21/isphero
def reset(request):
    q.clear()
    spherohelper.stop(sphero)
    return HttpResponse('')
예제 #4
0
def reset(request):
    q.clear()
    spherohelper.stop(sphero)
    return HttpResponse('')