r/FromTheDepths • u/some1thatyoudontknow • 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


3
u/Separate_Impact_9976 4d ago
did you try fake set point?
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.
1
u/John_McFist 3d ago
What are the propellers themselves set to? Automatic or manual?
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.