Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
ECU (Linear Interpolation)
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Mechanical
Microcontrollers: Calculation, Microcontroller
Tags: v0.8.25
File Size
Posted
Updated
30.372 KB
14 Sep, 2019 @ 12:25am
14 Sep, 2019 @ 8:45am
3 Change Notes ( view )

Subscribe to download
ECU (Linear Interpolation)

Description
This is my first attempt at making a fairly complex microcontroller, and my first ever Lua script as well. I built it following suggestions from Reddit user "coriolinus" and while it still has some problems, it works well. It's a work in progress, and it may need some tuning to work to your liking. I'm uploading here mainly to share with others to see how I did it, to help them in their own designs.

4 Inputs:

Power Demand: Input from throttle control, 0-100.

Engine RPS: Data from the Engine's RPS output.

Ignition: On/Off - starts or kills the engine, auto restarts on stall.

ECON: On/Off - Property slider allows selection of a multiplier ranging from .1 to 1.0. When this input is ON, Power Demand is multiplied by this property, reducing the maximum throttle input. Allows you to firewall the throttle without actually redlining the engines, and with the push of a toggle, have max throttle available again.

3 Outputs:

Throttle Adjustment: Output to the engine throttle(s).

Clutch Pressure Output: Engages Clutch Pressure (needs tuning, engages too soon right now and stalls the engines).

Engine Starter: On/Off - ON when conditions within the controller are met.


The PID portion is a WIP still. I don't like how jittery the engine is. I'll update this again if and when I find the PID settings that make the engine run smoothly.


Credits:
Reddit user "Coriolinus" for the initial concept and starting points.
Reddit user "McNutty195" for the new Target Engine RPS points to prevent engine stalls.
3 Comments
kananesgi  [author] 14 Mar, 2020 @ 4:54pm 
Sure. Glad it works for you. I've had a lot of problems with it in boats other than the one I designed it for, lol. Been a while since I played Stormworks, though.
TurboLlama 8 Mar, 2020 @ 4:11pm 
I use this ECU in all my vehicles and it is absolutely amazing! I just made a truck that used this ECU .. And I would like to share it in the Workshop, is that okay? with Credits ofc!
SamuelPepys 26 Jan, 2020 @ 11:19pm 
Very impressive!!