r/FromTheDepths • u/some1thatyoudontknow • 7d 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?
14
u/SUPAHELLADOPE 7d 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.
5
u/Mr-Doubtful 4d 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
1
u/TopZookeepergame6904 7d ago
Mess with the set point, I noted that it works different in and out of combat
1
u/Trojan_Shad0w 6d ago
Might want to try messing with the AI movement adjustments by setting the minimum altitude higher
1
u/Raelgunawsum 3d 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.
1
u/United_Tell1479 3d ago
(I really like the hull, good job) and just ad lead blocks in shapes that have minimal drag


3
u/Separate_Impact_9976 7d ago
did you try fake set point?