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

Merge pull request #97 from metrostroi-repo/95

Fixed battery charging, position of voltmeter
This commit is contained in:
glebqip
2021-01-11 17:32:18 +03:00
committed by GitHub
4 changed files with 7 additions and 5 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