I will be happy to get some ideas for possible algorithms to solve the problem!
the problem is how to write the code that will make the car drive and keep 30cm from the fence no matter what shape the fence is (with two ultrasonic sensors one at the front and the other at the side of the car)thanks
the car has 4 wheels controled by using the PWM option.
I steer by driving faster with the wheels of the other side i wang to steer.
the problem is how to write the code that will make the car drive and keep 30cm