修改重置应答器报文bug;修改转发列车控制消息逻辑bug
This commit is contained in:
parent
f6a6ef3175
commit
f96797d6e3
@ -1 +1 @@
|
||||
Subproject commit 126ba5a7619f6c55f893683dd5a0a86a30b25bec
|
||||
Subproject commit 3a30efc9fe949cd5ab9898073f00a093716f279e
|
@ -166,6 +166,7 @@ func baliseTelegramReset(simulation *VerifySimulation, balise *repository.Transp
|
||||
entry, _ := entity.GetEntityByUid(simulation.World, balise.Id())
|
||||
component.BaliseFixedTelegramType.SetValue(entry, component.BaliseState{
|
||||
Telegram: balise.FixedTelegram(),
|
||||
UserTelegram: balise.FixedUserTelegram(),
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
@ -381,7 +381,7 @@ func (s *VerifySimulation) HandleSemiPhysicalTrainControlMsg(b []byte) {
|
||||
s.Memory.Status.TrainStateMap.Range(func(_, value any) bool {
|
||||
train := value.(*state_proto.TrainState)
|
||||
if !train.Show { // 下线列车
|
||||
return false
|
||||
return true
|
||||
}
|
||||
trainId, err := strconv.Atoi(train.Id)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user