Barotrauma

Barotrauma

Battery Calculator (Outdated)
13 Comments
Crusade  [author] Nov 8, 2021 @ 5:42am 
Updated version with formatted minutes:seconds countdown is posted https://steamcommunity.com/sharedfiles/filedetails/?id=2649328711
Should be the same thing with just a more readable display. The "No change" bit was for when the battery was fully charged/discharged the display wouldn't go into random garbage cause to save on component count I didn't check to see if the math I was doing was possible like dividing by 0.
Grimm Spector Nov 5, 2021 @ 8:02pm 
@Crusade that would be amazing, thank you. I tried to do it, but for some reason the display fluctuates a lot though the power draw is only fluctuating a couple points, and the 0s don't show up, like when it's 1:30 it shows 1:3 lol

I'm curious what the "No change" bit is for too.
Crusade  [author] Nov 5, 2021 @ 5:37pm 
This was made before the concatenate function was added so the logic for that would have been many, many times larger and cause unnecessary lag. I'll update it like I did with the clock so it's got formatting and a couple options tomorrow. (It'll take me a day to re-download the game)
Grimm Spector Nov 5, 2021 @ 5:00pm 
Wish this gave me a formatted minutes:seconds display, I'll have to see if I can figure out how to do that.
Kotobuki Shimanako Pundhi Apr 30, 2021 @ 11:41am 
It still works but I connected the battery's charge_out to sgn's set_output instead of signal_in
DuckGoosebear PrairieDogLover Apr 11, 2021 @ 7:12pm 
Don't work :[
Crusade  [author] Aug 19, 2020 @ 11:58pm 
You don't have to divide, instead you can just use total charge capacity. The average gives you slightly more accurate measurements with big shifts in power. If you just add the charge_out of every battery thats enough to run the system, you need to change the set total capacity mem though to match though.

I didn't set it up for multiple batteries in the assembly because the game doesn't support many inputs to a single math component so the amount of logic needed for 2 batteries is different from 10. If they ever change that I will certainly update it but I'm still waiting on that.
Overmorth Aug 19, 2020 @ 10:36pm 
wow. but what if batterys has different capacity? anyway i dont even know how to do that
would be wonderful if you add divider function in ur scheme with place where we can chanche quantity of batterys number
(for dumbos like me.)
for now i added timer on reserv-lights and o2 power - looks very cool anyway
going to add it in shuttle too
Crusade  [author] Aug 19, 2020 @ 1:15pm 
If you're using multiple batteries you need to average the charge_out from every battery you have. So from your example, 3 adders to get the total charge, then divide that charge by 4, pass that value into the bottom left signal and it'll give you time for every battery.
setmad Aug 19, 2020 @ 8:51am 
This is work for a single battery or it's calculate time for multiple batteries? For example if i turning emergency mode on sub(swap on batteries with only important things powered on), so i will know how much time i will have from those 4 batteries.
Overmorth Aug 18, 2020 @ 10:54pm 
much thnx
Crusade  [author] Aug 18, 2020 @ 12:02pm 
You connect the charge_out pin on the battery to the signal_in on the SGN component in the bottom right.
Overmorth Aug 18, 2020 @ 11:08am 
Set_output pin to WHERE? battery has many options to connect to
:steamfacepalm: