From b4b2fc9e72bb25465a9e89a4ab13c82f8341707b Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Tue, 2 Apr 2024 18:29:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6pc=E4=BB=BF=E7=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- third_party/train_pc_sim/train_pc_sim.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/third_party/train_pc_sim/train_pc_sim.go b/third_party/train_pc_sim/train_pc_sim.go index f5b43b0..dbd184f 100644 --- a/third_party/train_pc_sim/train_pc_sim.go +++ b/third_party/train_pc_sim/train_pc_sim.go @@ -6,7 +6,6 @@ import ( "joylink.club/bj-rtsts-server/config" "joylink.club/bj-rtsts-server/dto/state_proto" "joylink.club/bj-rtsts-server/third_party/tcp" - "joylink.club/bj-rtsts-server/ts/simulation/wayside/memory" "joylink.club/ecs" "log/slog" "sync" @@ -73,8 +72,8 @@ func (pc *trainPcSimService) Start(pcSimManage TrainPcSimManage) { ctx, ctxFun := context.WithCancel(context.Background()) pc.cancleContext = ctxFun pc.trainPcSimManage = pcSimManage - vs := pcSimManage.(*memory.VerifySimulation) - FireTrainControlEventType.Subscribe(vs.World, pc.trainControlEventHandle) + //vs := pcSimManage.(*memory.VerifySimulation) + //FireTrainControlEventType.Subscribe(vs.World, pc.trainControlEventHandle) go pc.sendTrainLocationAndSpeedTask(ctx) }