1
0
Fork 0

Make the batteries drain when static inverter is active

This commit is contained in:
legoboyvdlp R 2020-05-03 17:24:03 +01:00
parent d6344cca6e
commit 443207e9b6

View file

@ -87,8 +87,12 @@
<switch name="/systems/electrical/sources/bat-1/direction">
<default value="0"/>
<test value="0">
<test logic="AND" value="0">
/systems/electrical/sources/bat-1/contact eq 0
/systems/electrical/sources/si-1/inverter-active eq 0
</test>
<test logic="AND" value="1">
/systems/electrical/sources/si-1/inverter-active eq 1
</test>
<test logic="AND" value="1"> <!-- drain -->
/systems/electrical/sources/bat-1/contact eq 1
@ -253,8 +257,12 @@
<switch name="/systems/electrical/sources/bat-2/direction">
<default value="0"/>
<test value="0">
<test logic="AND" value="0">
/systems/electrical/sources/bat-2/contact eq 0
/systems/electrical/sources/si-1/inverter-active eq 0
</test>
<test logic="AND" value="1">
/systems/electrical/sources/si-1/inverter-active eq 1
</test>
<test logic="AND" value="1"> <!-- drain -->
/systems/electrical/sources/bat-2/contact eq 1