forked from flynncowell/DalekBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DalekV2Commands.py
27 lines (25 loc) · 1.05 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
# 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):
# turnForward(leftSpeed, rightSpeed): Moves forwards in an arc by setting different speeds. 0 <= leftSpeed,rightSpeed <= 100
def turnForward(leftSpeed, rightSpeed):
# turnBackward(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):