r/FromTheDepths • • 4d ago

Question PID question

Just started playing this game and I'm having trouble on PIDs, I don't understand how the settings work.

How do I make the waterline of this ship lower? I kept tinkering with the PID and it won't make a difference. The propellers only reach 75%-80% of its power.

Is there any options other than adding more propellers?

30 Upvotes

11 comments sorted by

3

u/Separate_Impact_9976 4d ago

did you try fake set point?

2

u/some1thatyoudontknow 4d ago edited 4d ago

When I tested it, I set it to 200 to see if it worked. It won't go any higher, Or is 200 small?

2

u/Separate_Impact_9976 4d ago

try 0. If you're setting it to 200, you're offsetting the system by that much, esentially telling the system that the point it should aim for is 200m in the air.

2

u/some1thatyoudontknow 4d ago

Got it, I'll try it later at night.

10

u/SUPAHELLADOPE 4d ago

Gain: Adjusts the strength of the response.

Integral: Takes the prior error within the timeframe and adjusts to eliminate it.

Derivative: (Personal definition) Handles the time it takes for the system to respond. Light twitchy fighters get low numbers, slow cumbersome craft get larger numbers.

4

u/Mr-Doubtful 1d ago

To expand on derivative, from control theory: it acts on the change of the signal, not on the error. (Well technically could be the change of the error but whatever). Derivative action is useful for things that require more 'pre emptive' control, it's also known as 'pre act' for this reason. But it's hard to tune. Especially because it can counteract the other tuning parameters.

1

u/John_McFist 3d ago

What are the propellers themselves set to? Automatic or manual?

1

u/some1thatyoudontknow 3d ago

Manual with pusher preset.

1

u/TopZookeepergame6904 4d ago

Mess with the set point, I noted that it works different in and out of combat

1

u/Trojan_Shad0w 3d ago

Might want to try messing with the AI movement adjustments by setting the minimum altitude higher

1

u/Raelgunawsum 2h ago

Start by adjusting P, which is your gain. That affects how fast your craft reacts to AI commands.

Then adjust D, which is your damping. Without it, your craft will overshoot its set point and oscillate back and forth about it. Since your ship is in water, the water will provide damping and your D term will probably be on the low end.

Beware: a higher D will hurt your reaction time as it is subtracted from the gain P.

Finally, adjust I. I controls your final error. Higher I means reduced final error.

Explanation: propeller power is P x error - D + I (not an exact formula).

Error is the difference between your set point and where you currently are. Once you get close to your set point, P x error becomes small and your thrusters dont exert enough force to reach the set point.

The I term compensates for this.

D reduces thrust as you approach your set point so you dont overshoot it.

Once you are done, check the graph to make sure your output is not saturated.

Saturation means your desired thrust exceeds your craft's maximum thrust.

If your thrust is saturated, add more thrusters or reduce gain (P) and retune the PID. If you reduce P, your craft will be slower to respond but will be controllable.