Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
[1x2] Ackermann Steering
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Land
Tags: v0.10.35f
File Size
Posted
Updated
18.317 KB
4 Mar, 2019 @ 6:38am
27 Aug, 2020 @ 9:10am
2 Change Notes ( view )

Subscribe to download
[1x2] Ackermann Steering

In 1 collection by Tajin
Quality microcontollers for every occasion
21 items
Description
Ackermann steering controller.

You'll have to place one for every wheel you want to control.
Wire the input to your cockpit and the output to the steering of the wheel.


Determine where you want the turning center of your vehicle to be (the center of mass is usually best).
Now count the x and y distances in blocks from your turning center to each wheel and enter those numbers in the controller settings.
19 Comments
GrumpyOldMan 31 Aug, 2020 @ 6:33am 
Flipping still happes, only on the rearmost wheels and only when steering to the right, at ~0.4 steering input:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2215429636

On certain configurations the flipping happens even earlier, with the wheels ~-20 blocks for the y coordinate.
Tajin  [author] 31 Aug, 2020 @ 2:34am 
Yeah I don't see much point in using an inverter when I can just place the wheels right.

The controller here is updated btw. so the flipping around shouldn't happen anymore.
GrumpyOldMan 31 Aug, 2020 @ 2:21am 
Guess I solved it, in your vehicle example you're using the old wheels which don't need to invert the steering axis for the left hand wheels, this got me confused so I assumed the formula took care of inverting the axis on its own, depending on sign of the x input.

Simply add an inverter for the left hand wheels, solved it.
Rear wheel axle still flipping around at full inputs.
Tajin  [author] 27 Aug, 2020 @ 8:43am 
The example vehicle is setup correctly but I see what you mean with the rear wheels flipping around.

That is actually caused by the steering limitation the devs put in, I'll fix it.
Aside from that though, I see no issue there.
GrumpyOldMan 27 Aug, 2020 @ 7:58am 
I'm confused about how to set this up.
In your other workshop upload (the one with the vehicle) it says:

X position of the wheel relative to the desired center of rotation (+ right, - left)
Center of rotation? Your comment recommends the center of mass, but the results from using COM were weird.

So I assumed you meant a point outside of the vehicle, an extended axis from the COM to the vehicles side, when that desired center of rotation is 9 blocks left, 3 block behind the wheel I enter 9 for x and -3 for y?

If I set it that way I still have to invert the signal going to the left wheels to make the result somewhat symmetrical, while the steering seems to be off to one side, having a wider radius than when steering in the opposite direction.

Even with your default workshop example vehicle the steering seems wonky at best with rear wheels flipping at opposite sides with full steering to either side
FAlty75 26 Aug, 2020 @ 8:54pm 
thank you for this
Tajin  [author] 30 May, 2020 @ 3:14am 
Makes no difference really.
FacePwn64 29 May, 2020 @ 7:13pm 
After doing some testing, I believe the devs clamped steering angle to one radian or some approximation of it in each direction. I'm not sure if this affects your formula's calculations.
FacePwn64 29 May, 2020 @ 2:41am 
That looks beautiful. Another microcontroller is suggesting 70 degrees, ,and I'm not entirely sure if or how his formula may be different from yours.
Tajin  [author] 29 May, 2020 @ 1:18am 
It was actually almost unlimited for a while, thats how this thing came to be: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1478976292

Not sure how much it is now but that should be easy to test.