mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Оптимизация правок в электрике + настройка пневматики (ВЗ№2 и ЭПВ)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user