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

Изменения для КРУ в 3 руки

This commit is contained in:
Moon Horse
2021-12-21 12:47:23 +03:00
parent ba46473cb7
commit 4568615533

View File

@@ -30,6 +30,7 @@ function TRAIN_SYSTEM:Initialize()
latched = true, -- RPvozvrat latches into place latched = true, -- RPvozvrat latches into place
power_open = "None", -- Power source for the open signal power_open = "None", -- Power source for the open signal
power_close = "Mechanical", -- Power source for the close 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 -- Реле времени РВ1
@@ -93,13 +94,13 @@ function TRAIN_SYSTEM:Think()
end end
--self.RUTTarget = 250 + 150*self.Train.Pneumatic.WeightLoadRatio --self.RUTTarget = 250 + 150*self.Train.Pneumatic.WeightLoadRatio
-- RPvozvrat operation -- RPvozvrat operation
Train.RPvozvrat:TriggerInput("Close", Train.RPvozvrat:TriggerInput("Close", not Train.RPvozvrat.VozRpPressed and
(Train.DR1.Value == 1.0) or ((Train.DR1.Value == 1.0) or
(Train.DR2.Value == 1.0) or (Train.DR2.Value == 1.0) or
(Train.RPL.Value == 1.0) or (Train.RPL.Value == 1.0) or
(Train.RP1_3.Value == 1.0) or (Train.RP1_3.Value == 1.0) or
(Train.RP2_4.Value == 1.0) or (Train.RP2_4.Value == 1.0) or
(Train.RZ_1.Value == 1.0) or (Train.RZ_1.Value == 1.0) or
(Train.RZ_2.Value == 1.0) or (Train.RZ_2.Value == 1.0) or
(Train.RZ_3.Value == 1.0)) (Train.RZ_3.Value == 1.0)))
end end