Lua Pitch/Roll/Yaw Naval Stabilizer v1
[url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FThatGuyDom00] Github Link [/url][github.com]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3591163288] Microcontroller Workshop Collection [/url]
Thanks to SentyFunBall for all their help with my lua journey.
Thanks to Trapdoor for the PID function.
This is a twin rudder stabilizer for boats written in lua based on the math of this [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2270388425] Roll/Pitch Stabilizer for Ships [/url] workshop creation by Aldi Süd
Also uses math from [url=https://steamcommunity.com/sharedfiles/filedetails/?id=1721110222] Rudder Controller [/url] by sengir_vampire to handle the heading correction of the yaw rudder.
Will remove from listing if deemed to be a rip off, but I feel it is transformative enough to justify.
Same controls as before, have two rudders facing positive upward in the stern and connect each relevant output.
Uses a normal rudder for yaw steering and maintains heading based on previous heading.
Updated to use a single physics sensor and slim down the footprint as well as do all the math in lua.
Updated 10/23: Now actually working!
PID values are tuned to the test boat pictured, adjust P and D values to match the needs of your creation.