Car steering

So far I was able to build a car that has a steering method that would resembles an actual car. Like a rack and pinion steering. The way I turn it is from a controller. I am new to coding and am currently stuck to the exp block coding online. So far I have code that makes it go forward and backward with the left joystick moving forward and backward, then it turns the front steering motor when the right stick moves left and right. Is there a way to make it return to straight once I release the right joystick?

1 Like

Here is one think you can try.

Spin the motor to the heading in degrees which would be -100 at full left and +100 at full right. You could add some math to adjust the range.

1 Like