def right_point_turn(speed, term): #left moter true, right motor false PPicar.engine(True, False, speed, speed) sleep(term) PPicar.engine(True, False, speed, speed) sleep(term) PPicar.engine(True, False, speed, speed) sleep(term) PPicar.engine(True, False, speed, speed) sleep(term) PPicar.engine(True, False, speed, speed) sleep(term)
def right_swing_turn(speed, term): PPicar.engine(True, True, speed, 0) sleep(term) PPicar.engine(True, True, speed, 0) sleep(term) PPicar.engine(True, True, speed, 0) sleep(term) PPicar.engine(True, True, speed, 0) sleep(term) PPicar.engine(True, True, speed, 0) sleep(term)
def left_point_turn(speed, term): PPicar.engine(False, True, speed, speed) sleep(term) PPicar.engine(False, True, speed, speed) sleep(term) PPicar.engine(False, True, speed, speed) sleep(term) PPicar.engine(False, True, speed, speed) sleep(term) PPicar.engine(False, True, speed, speed) sleep(term)
def left_swing_turn(speed2, term): PPicar.engine(True, True, 0, speed2) sleep(term) PPicar.engine(True, True, 0, speed2) sleep(term) PPicar.engine(True, True, 0, speed2) sleep(term) PPicar.engine(True, True, 0, speed2) sleep(term) PPicar.engine(True, True, 0, speed2) sleep(term)
def right_point_turn(): #left moter true, right motor false PPicar.engine(True, False, 30, 30) sleep(0.2) PPicar.engine(True, False, 30, 30) sleep(0.2) PPicar.engine(True, False, 30, 30) sleep(0.2) PPicar.engine(True, False, 30, 30) sleep(0.2) PPicar.engine(True, False, 30, 30) sleep(0.2)
def right_swing_turn(): PPicar.engine(True, True, 63, 0) sleep(0.3) PPicar.engine(True, True, 63, 0) sleep(0.3) PPicar.engine(True, True, 63, 0) sleep(0.3) PPicar.engine(True, True, 63, 0) sleep(0.3) PPicar.engine(True, True, 63, 0) sleep(0.3)
def go_backward(speed): PPicar.engine(False, False, speed, speed-4.8)
def go_forward(speed): PPicar.engine(True, True, speed, speed-0.4)
def left_point_turn(speed): PPicar.engine(False, True, speed, speed)
def right_swing_turn(): PPicar.engine(True, True, 53, 0)
def left_swing_turn(): PPicar.engine(True, True, 0, 48)
def stop(): PPicar.engine(True, True, 0, 0)
def left_point_turn(): PPicar.engine(False, True, 30, 30) sleep(1)
def right_point_turn(speed):#left moter true, right motor false PPicar.engine(True, False, 40, 40)