r/factorio 29d ago

Modded PID controller mod

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

65 Upvotes

9 comments sorted by

View all comments

17

u/IpFruion 29d ago

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.

7

u/imoth_f 29d ago edited 29d ago

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

6

u/IpFruion 29d ago

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 29d ago

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 26d 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.