【删除半实物打印】
This commit is contained in:
parent
a8ea59f082
commit
302f1c5e76
@ -1,7 +1,6 @@
|
|||||||
package memory
|
package memory
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/hex"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
@ -290,7 +289,6 @@ func (s *VerifySimulation) HandleDynamicsTrainInfo(info *message.DynamicsTrainIn
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 给半实物仿真发送速度
|
// 给半实物仿真发送速度
|
||||||
slog.Info("发送给半实物消息的生命周期", info.VobcLifeSignal)
|
|
||||||
semi_physical_train.Default().SendTrainControlMessage(info)
|
semi_physical_train.Default().SendTrainControlMessage(info)
|
||||||
// 更新列车状态
|
// 更新列车状态
|
||||||
trainState := UpdateTrainStateByDynamics(s, trainId, 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()})
|
panic(dto.ErrorDto{Code: dto.ArgumentParseError, Message: err.Error()})
|
||||||
}
|
}
|
||||||
d := append(b, uint8(trainId))
|
d := append(b, uint8(trainId))
|
||||||
slog.Info("接收到vobc发送的列车消息", hex.EncodeToString(d))
|
|
||||||
// 发送给动力学
|
// 发送给动力学
|
||||||
dynamics.Default().SendTrainControlMessage(d)
|
dynamics.Default().SendTrainControlMessage(d)
|
||||||
// 存放至列车中
|
// 存放至列车中
|
||||||
|
Loading…
Reference in New Issue
Block a user