Merge branch 'develop' into local-test
All checks were successful
local-test分支打包构建docker并发布运行 / Docker-Build (push) Successful in 1m51s

This commit is contained in:
tiger_zhou 2024-05-10 08:24:05 +08:00
commit d24717c13a
2 changed files with 4 additions and 1 deletions

@ -1 +1 @@
Subproject commit 121134778a38df672562fd8d1acb1482a327702f Subproject commit e4c55ea4b6f9f5f875d59fc5bba51fc21bc8ef97

View File

@ -59,6 +59,9 @@ func ControlTrainUpdate(s *VerifySimulation, ct *request_proto.TrainControl) {
vobc.TractionStatus = false vobc.TractionStatus = false
vobc.TractionForce = 0 vobc.TractionForce = 0
} }
if vobc.EmergencyBrakingStatus {
vobc.TractionForce = 0
}
if sta.ConnState.Conn && sta.ConnState.ConnType == state_proto.TrainConnState_PC_SIM && tce != nil { if sta.ConnState.Conn && sta.ConnState.ConnType == state_proto.TrainConnState_PC_SIM && tce != nil {
train_pc_sim.Default().PublishTrainControlEvent(tce) train_pc_sim.Default().PublishTrainControlEvent(tce)
} }