Barotrauma

Barotrauma

Ballast Controller
26 Comments
Soggy_Balt 27 Dec, 2021 @ 5:23am 
Yeah it's all working now, thanks for the help!
Krzeszny 27 Dec, 2021 @ 4:52am 
It shouldn't, as this mod was updated in July. The multiplier that multiplies by 50 should have 100
Soggy_Balt 27 Dec, 2021 @ 3:47am 
Okay so the autopilot is working great now, but how do i make it so that my ballast tanks fill up completely, when i am trying to float the ballast only drain to 25%, and when i try to go down they fill up to 75%, how can i fix that?
Krzeszny 26 Dec, 2021 @ 4:42pm 
@Soggy after you set it to 0.5 in the terminal, tweak the a) value because it sets the neutral ballast level in this contraption. You want to tweak value a) so that the sub doesn't move on its own. You can make the walls transparent in settings and spawn a neutral buoyancy object outside of the sub to observe whether the sub's moving. Glowsticks are neutral, so "spawnitem glowstick cursor" in console
Soggy_Balt 26 Dec, 2021 @ 12:37pm 
how do i change the neutral ballast level with the ballast controller?
Soggy_Balt 19 Dec, 2021 @ 6:48am 
yeah thanks it worked!
:steamthis:
Soggy_Balt 19 Dec, 2021 @ 6:41am 
thank you!
Krzeszny 19 Dec, 2021 @ 6:12am 
nav terminal's velocity_y_out is the input and the output goes to something like set_level on all pumps
try to figure it out and if not I'll check it in the editor
Soggy_Balt 19 Dec, 2021 @ 2:50am 
But what do i connect the X'es to, and where?
Krzeszny 18 Dec, 2021 @ 9:26am 
the top X'es
Soggy_Balt 18 Dec, 2021 @ 7:20am 
where do i set the inputs and outputs
Krzeszny 17 Oct, 2021 @ 12:18pm 
Yes, this replaces the default one. I haven't tested it after the update to tell whether it works better or worse than default, but it's most likely better.
crow36 17 Oct, 2021 @ 11:32am 
so in simple terms this helps to maintain position?
RainDreamer 7 Jun, 2021 @ 7:49pm 
@Krzeszny, set the *50 mem to 100.

This circuit divide the nav input by 100 then multiply it by 50 to work with the old pump range of input (-50 & 50), but the update now use the full range with -100 & 100.

So you just have to give the full value back.
Krzeszny 1 May, 2021 @ 8:30am 
When I want to go down in high current, the tanks only fill up to 74% on average. I tried modifying value a) and b) without effects.
Krzeszny 22 Mar, 2021 @ 1:47pm 
Ok, I worked it out. The value "a" is the controller's neutral ballast level, but only when all the ballast tanks have the same volumes. I understand that the controller only works correctly when the terminal's neutral ballast level is set to 0.5 (in the parameters in the editor.) If all the ballast tanks have the same volume, the a) value can be the neutral ballast point from the editor.
G3NTrovert  [author] 22 Mar, 2021 @ 12:01pm 
if you look at the graph in the pictures, value a causes the green line to become the red and blue, making it so that when you send in a 0 signal the sub doesn't move vertically. the b value modifies the blue and red to become and arch. this compensates for the drag you experience at faster speeds. so now if you send 50% up from the nav terminal or other components you will go up roughly at 50% of your possible max speed.
G3NTrovert  [author] 22 Mar, 2021 @ 11:57am 
1. if you change the ballast level in the nav terminal it does some weirdness with the output. if you change both the controller and terminal you basically get two methods that conflict with one another. yes I am talking about the neutral ballast lv.
2. tweak it till with 0 input from the nav terminal you remain stable and do not go up or down.
3. to cope with the autopilot settings. autopilot only uses -50 to 50. by hand goes from -100 to 100. the divide is just for math simplicity with the ballast value.
Krzeszny 22 Mar, 2021 @ 7:35am 
It would be helpful if you explained how to calibrate the MEM values, as the default ones don't work on all subs. Currently the autopilot doesn't work unless I have the navigation terminal UI open.
Krzeszny 21 Feb, 2021 @ 8:06am 
Anyway, great work with the controller. While it's confusing, it works perfectly on the default values with the Humpback.
Krzeszny 21 Feb, 2021 @ 8:06am 
1. Is "terminal ballast level" the Neutral Ballast Point? If so, why should it be 0.5 and how does your controller adjust for subs with differing neutral ballast levels, not knowing the volumes?

2. How to tell if changing the a) value is needed and whether to increase or dicrease it?

3. Why did you put /100 and *50 above the top memory chips?

4. Notice what you said in the oldest comment. In reality, the controller looks exactly like in the thumbnail and there is no "input and output arrow." It makes the wiring very confusing because the input and output are not at the top .

It took me a while to figure out where the input and output are. I thought the memory components were the input and output according to your comment.

In case someone wants to use it, the input is the top left multiply comp. and the output is the top right multiply comp.
G3NTrovert  [author] 31 Jul, 2020 @ 1:20pm 
use y velocity from the terminal
and set target level in the pumps
G3NTrovert  [author] 31 Jul, 2020 @ 1:18pm 
top left multiplyer is the input top right multiplyer output
tesoul 31 Jul, 2020 @ 1:03pm 
Hi G3NTs, how I do integrate this into my sub?, which component is the input/output?
G3NTrovert  [author] 24 Jul, 2020 @ 8:34am 
I also found an issue (universal) that when u link two hulls together for your ballast tank, and use a gap to connect them. no matter the position: the set targetlevel is not representative of the two hulls combined. only of the hull the pump is placed in.
G3NTrovert  [author] 24 Jul, 2020 @ 6:57am 
Input and output arrow are included in the file, not in the picture due to me realizing it a bit late