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)
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)
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)
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)
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)
def BR(pos): if pos == "UP": quadrov6.PWM_SET(quadrov6.p3, 70) elif pos == "DOWN": quadrov6.PWM_SET(quadrov6.p3, 45)
def BL(pos): if pos == "UP": quadrov6.PWM_SET(quadrov6.p4, 40) elif pos == "DOWN": quadrov6.PWM_SET(quadrov6.p4, 60)
def FR(pos): if pos == "UP": quadrov6.PWM_SET(quadrov6.p1, 40) elif pos == "DOWN": quadrov6.PWM_SET(quadrov6.p1, 70)
def FL(pos): if pos == "UP": quadrov6.PWM_SET(quadrov6.p2, 70) elif pos == "DOWN": quadrov6.PWM_SET(quadrov6.p2, 40)