1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Fixed battery charging, position of voltmeter

This commit is contained in:
toxin1pilot
2021-01-06 17:51:21 +03:00
parent 1d05caf866
commit 238740173a
4 changed files with 7 additions and 4 deletions

View File

@@ -209,6 +209,7 @@ function TRAIN_SYSTEM:SolveAllInternalCircuits(Train,dT,firstIter)
)/750*(0.5+0.5*B*Train.VB.Value*Train.KZ1.Value)
))
Panel.MainLights2 = Panel.MainLights1*Train.KO.Value
Train.Battery:TriggerInput("Charge", Train.VB.Value*Panel.MainLights1)
Train.KK:TriggerInput("Set",T[22]+T[23])
Train.KO:TriggerInput("Close",T[27])
Train.KO:TriggerInput("Open",T[28])

View File

@@ -251,6 +251,7 @@ function TRAIN_SYSTEM:SolveAllInternalCircuits(Train,dT,firstIter)
)/750*(0.5+0.5*B*Train.VB.Value*Train.KZ1.Value)
))
Panel.MainLights2 = Panel.MainLights1*Train.KO.Value
Train.Battery:TriggerInput("Charge", Train.VB.Value*Panel.MainLights1)
Panel.VPR = BO*Train.RST.Value