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

Оптимизация правок в электрике + настройка пневматики (ВЗ№2 и ЭПВ)

This commit is contained in:
Moon Horse
2022-01-13 18:07:40 +03:00
parent 701da5fe9d
commit 52f4d55fcc
5 changed files with 8 additions and 17 deletions

View File

@@ -30,7 +30,6 @@ function TRAIN_SYSTEM:Initialize()
latched = true, -- RPvozvrat latches into place
power_open = "None", -- Power source for the open signal
power_close = "Mechanical", -- Power source for the close signal
VozRpPressed = false, -- Added to override the blocking action of the energized RP relays on RPVozvrat
})
-- Реле времени РВ1
@@ -94,8 +93,8 @@ function TRAIN_SYSTEM:Think()
end
--self.RUTTarget = 250 + 150*self.Train.Pneumatic.WeightLoadRatio
-- RPvozvrat operation
local A = Train.RPvozvrat.VozRpPressed ~= 0
Train.RPvozvrat:TriggerInput("Close", not A and
--local A = Train.RPvozvrat.VozRpPressed ~= 0
Train.RPvozvrat:TriggerInput("Close", Train:ReadTrainWire(17) == 0 and -- condition added to override the blocking action of the energized RP relays on RPVozvrat
((Train.DR1.Value == 1.0) or
(Train.DR2.Value == 1.0) or
(Train.RPL.Value == 1.0) or