【删除半实物打印】

This commit is contained in:
weizhihong 2024-01-09 16:00:18 +08:00
parent a8ea59f082
commit 302f1c5e76

View File

@ -1,7 +1,6 @@
package memory
import (
"encoding/hex"
"encoding/json"
"fmt"
"log/slog"
@ -290,7 +289,6 @@ func (s *VerifySimulation) HandleDynamicsTrainInfo(info *message.DynamicsTrainIn
return
}
// 给半实物仿真发送速度
slog.Info("发送给半实物消息的生命周期", info.VobcLifeSignal)
semi_physical_train.Default().SendTrainControlMessage(info)
// 更新列车状态
trainState := UpdateTrainStateByDynamics(s, trainId, info)
@ -394,7 +392,6 @@ 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)
// 存放至列车中