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
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
def reset(request): q.clear() spherohelper.stop(sphero) return HttpResponse('')