mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-20 01:13:58 +00:00
feature: slower rising simulated SOC, to have more time for drawing power
This commit is contained in:
parent
23b1384e1c
commit
dbe5470fdb
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ class hardwareInterface():
|
||||||
if (self.simulatedSoc<100):
|
if (self.simulatedSoc<100):
|
||||||
if ((self.outvalue & 2)!=0):
|
if ((self.outvalue & 2)!=0):
|
||||||
# while the relay is closed, simulate increasing SOC
|
# while the relay is closed, simulate increasing SOC
|
||||||
self.simulatedSoc = self.simulatedSoc + 0.05
|
self.simulatedSoc = self.simulatedSoc + 0.01
|
||||||
|
|
||||||
|
|
||||||
self.loopcounter+=1
|
self.loopcounter+=1
|
||||||
|
|
Loading…
Reference in a new issue