-
Notifications
You must be signed in to change notification settings - Fork 2
/
DalekV2Commands.py
31 lines (29 loc) · 1.41 KB
/
DalekV2Commands.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Turn all motors off
def stop():
# forward(speed): Sets all 4 motors to move forward at speed. 0 <= speed <= 100
def forward(Speed):
# backward(speed): Sets all 4 motors to reverse at speed. 0 <= speed <= 100
def backward(Speed):
# turnForwardRight(leftSpeed, rightSpeed): Moves forwards in an arc by setting different speeds. 0 <= leftSpeed,rightSpeed <= 100
def turnForwardRight(leftSpeed, rightSpeed):
# turnForwardLeft(leftSpeed, rightSpeed): Moves forwards in an arc by setting different speeds. 0 <= leftSpeed,rightSpeed <= 100
def turnForwardLeft(leftSpeed, rightSpeed):
# turnBackwardRight(leftSpeed, rightSpeed): Moves backwards in an arc by setting different speeds. 0 <= leftSpeed,rightSpeed <= 100
def turnBackwardRight(leftSpeed, rightSpeed):
# turnBackwardLeft(leftSpeed, rightSpeed): Moves backwards in an arc by setting different speeds. 0 <= leftSpeed,rightSpeed <= 100
def turnBackward(leftSpeed, rightSpeed):
# spinLeft(speed): Sets motors to turn opposite directions at speed. 0 <= speed <= 100
def spinLeft(Speed):
# spinRight(speed): Sets motors to turn opposite directions at speed. 0 <= speed <= 100
def spinRight(Speed):
#======================================================================
# Test Functions
#======================================================================
def FRF(Speed):
def FLF(Speed):
def BRF(Speed):
def BLF(Speed):
def FRB(Speed):
def FLB(Speed):
def BRB(Speed):
def BLB(Speed):