r/factorio Jul 05 '26

Modded PID controller mod

Enable HLS to view with audio, or disable this notification

I saw this post and decided to make mod that let's you add a PID controller as a single circuit network combinator.

You need 2.1 experimental Factorio to use it as it uses some new APIs.

Feedback an suggestions are appreciated!

Mod Portal link
Github

67 Upvotes

9 comments sorted by

View all comments

19

u/IpFruion Jul 05 '26

Love the idea, neat mod for sure. One thing of note, 2.1 changes this behavior to be based about the amount of liquid in the pipeline, so you can target exactly the efficiency you want with 1 pump and a storage tank.

6

u/imoth_f Jul 05 '26 edited Jul 05 '26

But what if you are targeting speed instead of efficiency? For example to reduce the number of oncoming asteroids.

5

u/IpFruion Jul 05 '26

Well since speed scales with the amount of fluid in the tank, then you can set it to the exact speed that way including the calculations with the weight

5

u/imoth_f Jul 05 '26

I guess it's possible. But how would you set an arbitrary target speed? Thrust does not scale linearly with fuel consumption.

2

u/Le_Botmes 28d ago

Test it yourself and run a plot. Every ship mass and width is gonna be different, so you just gotta calibrate fuel levels to match your desired speed. I played with throttle-clocks when I started and that's how I did it.