Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
If you understand basic electronics and logic blocks (and/or math) this is easy to make.
On the top bar you'll find a button for microcontrollers, clicking it brings you to another creation utility.
In here, specify as many number inputs as you have tanks, and then one output. You may have to adjust the size of the microcontroller to do this.
The "simple" way to do this is to have a lot of addition (+) blocks, but it's also a little bit silly. You can use the f(x) style block with many inputs for a much better version. The f(x) style block basically can perform relatively simple math on its inputs. Your inputs only need to be along the lines of : x+y+z+w..... and continue for as many inputs as you have, then route that to the output.
If you're confused, i can make a quick example.
However, if your batteries are all connected together (the ones you want to combine the readout for) then as far as I understand they should all drain evenly, so you only need to read one to get the charge level remaining.
You don't count batteries in the same circuit together.
Edit: would be different story if your batts are of different capacities though.
Edit#2: for varied batt sizes, you may want to convert the percent value given (it is more like a fraction, really) into a charge amount:
(power cap in units*battery data).
You can then make a "percent" value (something resembling the average mentioned earlier) if you add all the capacities of the batteries, and then divide the combined charge amounts by that:
((Power cap A*Batt Data A)+(Cap B*Data B)+O(Cap C*Data C))/(Cap A+Cap B+Cap C)=Somewhere from 1 to 0 that can be multiplied by 100 to make an actual percent.
I'm assuming there is a tooltip for the battery capacities in the builder, but I could be wrong.