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

removed debug messages and obsolete BPSN protection code

This commit is contained in:
Moon Horse
2024-07-05 22:09:04 +03:00
parent 24a3e9f67c
commit 5fe1db4e0e
3 changed files with 15 additions and 45 deletions

View File

@@ -689,8 +689,8 @@ function ENT:Think()
self:SetPackedRatio("EnginesCurrent2", 0.5 + 0.5*(self.Electric.I13/500.0))
self:SetPackedRatio("EnginesCurrent", 0.5 + 0.5*(self.Electric.I24/500.0))
-- Эту залупу надо либо убирать, либо переписывать с учетом токов ЦУ
----------------------------------*****************************--------------------------------
--[[-------************* This stupid shit is not needed any more. Overload protection is now implemented correctly inside BPSN system *************---------
--imitating converter overload protection only when control circuits are energized and at least one PC on the train is off; pretty useless btw (but fun)
local pcloadratio = #self.WagonList/(self.Battery.hvcounter > 0 and self.Battery.hvcounter or 0.5)
local _A = 90*(6 - 6/(5.01)) --assuming one PC on 6 cars can work for 90 secs while the cars' CCs are energized
@@ -712,7 +712,7 @@ function ENT:Think()
end
end
self.PowerSupply:TriggerInput("3x2",self.pcrlxtimer and 1 or 0) --BPSN overheat protection in case of RZP button is being pressed constantly
----------------------------------*****************************--------------------------------
----------------------------------*****************************--------------------------------]]
self:SetPackedRatio("BatteryVoltage",(self.Battery.eds_eq)/150.0)