Linear Regression Line Following

I replaced

set_servos(throttle_output, steering_output)

by

    ch1 = tim.channel(1, Timer.PWM, pin=Pin("P7"), pulse_width_percent=throttle_output-(90-steering_output))
    ch2 = tim.channel(2, Timer.PWM, pin=Pin("P8"), pulse_width_percent=throttle_output+(90-steering_output))

and now it works !

Thank you very much for your time and sorry for the whole code… I won’t do that again :wink: