def right(request):
    StartArm([0,1,0]) #Rotate base clockwise
    return HttpResponse('the arm has moved!!!')
Example #2
0
def forwards():
    StartArm([144, 0, 0])
    return 'the arm has moved!!!'
def gripclose():
    StartArm([1, 0, 0])  #Grip close
    return 'the arm has moved!!!'
def lightoff():
    StartArm([0, 0, 0])  #Light off
    return 'the arm has moved!!!'
def elbowdown():
    StartArm([32, 0, 0])  #Elbow down
    return 'the arm has moved!!!'
def wristdown():
    StartArm([8, 0, 0])  # Wrist down
    return 'the arm has moved!!!'
def wristdown(request):
    StartArm([8,0,0]) # Wrist down
    return HttpResponse('the arm has moved!!!')
def down():
    StartArm([128, 0, 0])  #Shoulder down
    return 'the arm has moved!!!'
def elbowdown(request):
    StartArm([32,0,0]) #Elbow down
    return HttpResponse('the arm has moved!!!')
def wristup(request):
    StartArm([4,0,0]) #Wrist up
    return HttpResponse('the arm has moved!!!')
def elbowup(request):
    StartArm([16,0,0]) #Elbow up
    return HttpResponse('the arm has moved!!!')
def down(request):
    StartArm([128,0,0]) #Shoulder down
    return HttpResponse('the arm has moved!!!')
def up(request):
    StartArm([64,0,0]) #Shoulder up
    return HttpResponse('the arm has moved!!!')
def baseclockwise():
    StartArm([0, 1, 0])  #Rotate base anti-clockwise
    return 'the arm has moved!!!'
def gripopen(request):
    StartArm([2,0,0]) #Grip open
    return HttpResponse('the arm has moved!!!')
def up():
    StartArm([64, 0, 0])  #Shoulder up
    return 'the arm has moved!!!'
def gripclose(request):
    StartArm([1,0,0]) #Grip close
    return HttpResponse('the arm has moved!!!')
def elbowup():
    StartArm([16, 0, 0])  #Elbow up
    return 'the arm has moved!!!'
def lightoff(request):
    StartArm([0,0,0]) #Light off
    return HttpResponse('the arm has moved!!!')
def wristup():
    StartArm([4, 0, 0])  #Wrist up
    return 'the arm has moved!!!'
def backwards(request):
    StartArm([99,0,0])
    return HttpResponse('the arm has moved!!!')
def gripopen():
    StartArm([2, 0, 0])  #Grip open
    return 'the arm has moved!!!'
def forwards(request):
    StartArm([144,0,0])
    return HttpResponse('the arm has moved!!!')
def lighton():
    StartArm([0, 0, 1])  #Light on
    return 'the arm has moved!!!'
Example #25
0
def backwards():
    StartArm([99, 0, 0])
    return 'the arm has moved!!!'
def start_baseanticlockwise():
    StartArm([0, 2, 0])  #Rotate base anti-clockwise
    return 'the arm has moved!!!'
def left(request):
    StartArm([0,2,0]) #Rotate base anti-clockwise
    return HttpResponse('the arm has moved!!!')