Barotrauma

Barotrauma

Not enough ratings
Battery Calculator (Updated)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
182.099 KB
8 Nov, 2021 @ 5:38am
1 Change Note ( view )

Subscribe to download
Battery Calculator (Updated)

Description
Updated battery calculator to work with concatenate components. Calculates remaining battery time or time to full charge based on current power draw. Accuracy increases with larger power values or with a longer update interval. Follow the 4 labels included in assembly to connect to sub. Includes a sub file and assembly file with download.
4 Comments
Kafkatrap 30 Jan, 2022 @ 12:20am 
Thanks!
Crusade  [author] 29 Jan, 2022 @ 11:56am 
Just incase to get the sum of all the CHARGE_OUT pins you'll have to have an ADD component for each battery (minus the first) and create a tree adding the previous total to the CHARGE_OUT of the next battery and so on until they're all connected. The final output goes into that SGN component.
Crusade  [author] 29 Jan, 2022 @ 11:56am 
To connect the batteries you sum of all their CHARGE_OUT pins to the SET_OUTPUT pin of the SGN component in the bottom right of the assembly. Don't forget to also set the MEM components VALUE variable to the total charge of all connected batteries (this is done in the editor no need to connect any wires to it),

The "No change message" is for whatever you want the output display to say when the battery is stable. Change the VALUE variable in that MEM component to whatever you want it to say. It could be stable through 4 ways; Completely empty, Full, No current power draw (sub off), or the input and output requirements are perfectly matched (probably not gonna happen). To save on complexity I didn't give the assembly the ability to distinguish the 4 possible outcomes instead it just knows if the no change was made. The most common message it would display anyways is going to be Full in most subs anyways so I saved the potential component lag by just omitting it to begin with.
Kafkatrap 29 Jan, 2022 @ 3:53am 
Trying to follow the instructions, am noob at components.

Are you not supposed to connect the batteries to the Battery Calculator in some way? If not, how does it update or reset when using it in a shuttle that can recharge through docking port?
What does the "no change message" mean?