Lua script for rudder/castor control on a skid steering vehicle


I made a lua script to control an active castor or a rudder on a vehicle that is configured for skid steering. For a rover, the castor should be able to go from -90 to 90 degrees, to make pivot turns possible. For a boat this might not be as important. The script takes steering (-1/1) and throttle values and calculates the angle the castor should be at. So for steering input without throttle (pivot turning) the castor/rudder will go to 90 (or as far as possible on a boat) degrees left or right. Perhaps this is useful for someone. (793 Bytes)

1 Like