Stormworks: Build and Rescue

Stormworks: Build and Rescue

评价数不足
ECU (Linear Interpolation)
   
奖励
收藏
已收藏
取消收藏
Vehicles: Mechanical
Microcontrollers: Calculation, Microcontroller
标签: v0.8.25
文件大小
发表于
更新日期
30.372 KB
2019 年 9 月 14 日 上午 12:25
2019 年 9 月 14 日 上午 8:45
3 项改动说明 ( 查看 )

订阅以下载
ECU (Linear Interpolation)

描述
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 条留言
kananesgi  [作者] 2020 年 3 月 14 日 下午 4:54 
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 2020 年 3 月 8 日 下午 4:11 
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 2020 年 1 月 26 日 下午 11:19 
Very impressive!!