def sag(tf, ff):
    init()
    gpio.output(18, 0)
    gpio.output(22, 0)
    sap = gpio.PWM(27, 50)
    sap2 = gpio.PWM(17, 50)
    sap.start(ff)
    sap2.start(ff)
    tf = float(tf)
    tf = (tf / motorhizi)
    time.sleep(tf)
    gpio.cleanup()
def sag(tf, ff):
    init()
    gpio.output(18, 0)
    gpio.output(22, 0)
    sap = gpio.PWM(27, 50)
    sap2 = gpio.PWM(17, 50)
    sap.start(ff)
    sap2.start(ff)
    tf = float(tf)
    tf = (tf / motorhizi)
    time.sleep(tf)
    gpio.cleanup()