Compare commits
2 Commits
fddb10af77
...
1d77dd0fec
Author | SHA1 | Date | |
---|---|---|---|
|
1d77dd0fec | ||
|
b4b2fc9e72 |
5
third_party/train_pc_sim/train_pc_sim.go
vendored
5
third_party/train_pc_sim/train_pc_sim.go
vendored
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user