【增加半实物信息打印】

This commit is contained in:
weizhihong 2024-01-05 16:49:38 +08:00
parent 18b1edb235
commit 5e65421e7d
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package memory
import (
"encoding/hex"
"encoding/json"
"fmt"
"log/slog"
@ -392,6 +393,7 @@ func (s *VerifySimulation) HandleSemiPhysicalTrainControlMsg(b []byte) {
panic(dto.ErrorDto{Code: dto.ArgumentParseError, Message: err.Error()})
}
d := append(b, uint8(trainId))
slog.Info("接收到vobc发送的列车消息", hex.EncodeToString(d))
// 发送给动力学
dynamics.Default().SendTrainControlMessage(d)
// 存放至列车中