コード例 #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('')