From d0ad0822189b9d748b61b9eabf19179624f81b5d Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Thu, 9 Nov 2023 15:55:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E8=BD=B4rssp=20=E9=9B=86=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sys/device_sys/fadc_axle_device.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/device_sys/fadc_axle_device.go b/sys/device_sys/fadc_axle_device.go index 5a935c9..a22ed7c 100644 --- a/sys/device_sys/fadc_axle_device.go +++ b/sys/device_sys/fadc_axle_device.go @@ -32,7 +32,6 @@ func (s *FaDcAxleDeviceSystem) Update(w ecs.World) { s.calculateDrst(sectionState, axleDevice, axleRuntime) s.calculatePdrst(sectionState, axleDevice, axleRuntime) s.calculateSectionState(sectionState, axleDevice, axleRuntime) - s.calculateAxleCount(sectionState, axleDevice, axleRuntime) if "北京_12_酒仙桥_12G" == axleSectionId && false { sectionFault := axleSectionEntry.HasComponent(component.AxleSectionFaultTag) @@ -52,13 +51,6 @@ func (s *FaDcAxleDeviceSystem) Update(w ecs.World) { }) } -// 计算计轴区段内车轴数 -// 目前通过查看有哪些车在该计轴区段内实现,定性 -func (s *FaDcAxleDeviceSystem) calculateAxleCount(sectionState *component.PhysicalSectionState, axleDevice *component.AxlePhysicalSection, axleRuntime *component.AxleDeviceRuntime) { - //检查该区段内有没有车 - // ...todo -} - // 计算计轴区段状态 func (s *FaDcAxleDeviceSystem) calculateSectionState(sectionState *component.PhysicalSectionState, axleDevice *component.AxlePhysicalSection, axleRuntime *component.AxleDeviceRuntime) { isIdle := axleDevice.Count <= 0 && !axleRuntime.DoingPdrst //区段空闲:区段内车轴数为零且没有预复位