Compare commits

...

2 Commits

Author SHA1 Message Date
tiger_zhou
1d77dd0fec Merge branch 'develop' into local-test
Some checks failed
local-test分支打包构建docker并发布运行 / Docker-Build (push) Failing after 1m2s
2024-04-02 18:29:32 +08:00
tiger_zhou
b4b2fc9e72 列车pc仿真 2024-04-02 18:29:00 +08:00

View File

@ -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)
}