Beispiel #1
0
def BRS(pos):
    if pos == "FOR":
        quadrov6.PWM_SET(quadrov6.p8, 40)
    elif pos == "BACK":
        quadrov6.PWM_SET(quadrov6.p8, 85)
    elif pos == "MID":
        quadrov6.PWM_SET(quadrov6.p8, 60)
Beispiel #2
0
def FRS(pos):
    if pos == "FOR":
        quadrov6.PWM_SET(quadrov6.p6, 40)
    elif pos == "BACK":
        quadrov6.PWM_SET(quadrov6.p6, 80)
    elif pos == "MID":
        quadrov6.PWM_SET(quadrov6.p6, 60)
Beispiel #3
0
def BLS(pos):
    if pos == "FOR":
        quadrov6.PWM_SET(quadrov6.p7, 70)
    elif pos == "BACK":
        quadrov6.PWM_SET(quadrov6.p7, 30)
    elif pos == "MID":
        quadrov6.PWM_SET(quadrov6.p7, 50)
Beispiel #4
0
def FLS(pos):
    if pos == "FOR":
        quadrov6.PWM_SET(quadrov6.p5, 80)
    elif pos == "BACK":
        quadrov6.PWM_SET(quadrov6.p5, 40)
    elif pos == "MID":
        quadrov6.PWM_SET(quadrov6.p5, 60)
Beispiel #5
0
def motors_off():
    quadrov6.PWM_SET(quadrov6.p1, 0)
    quadrov6.PWM_SET(quadrov6.p2, 0)
    quadrov6.PWM_SET(quadrov6.p3, 0)
    quadrov6.PWM_SET(quadrov6.p4, 0)
    quadrov6.PWM_SET(quadrov6.p5, 0)
    quadrov6.PWM_SET(quadrov6.p6, 0)
    quadrov6.PWM_SET(quadrov6.p7, 0)
    quadrov6.PWM_SET(quadrov6.p8, 0)
Beispiel #6
0
def BR(pos):
    if pos == "UP":
        quadrov6.PWM_SET(quadrov6.p3, 70)
    elif pos == "DOWN":
        quadrov6.PWM_SET(quadrov6.p3, 45)
Beispiel #7
0
def BL(pos):
    if pos == "UP":
        quadrov6.PWM_SET(quadrov6.p4, 40)
    elif pos == "DOWN":
        quadrov6.PWM_SET(quadrov6.p4, 60)
Beispiel #8
0
def FR(pos):
    if pos == "UP":
        quadrov6.PWM_SET(quadrov6.p1, 40)
    elif pos == "DOWN":
        quadrov6.PWM_SET(quadrov6.p1, 70)
Beispiel #9
0
def FL(pos):
    if pos == "UP":
        quadrov6.PWM_SET(quadrov6.p2, 70)
    elif pos == "DOWN":
        quadrov6.PWM_SET(quadrov6.p2, 40)