【推送半实物信息时增加列车轮径信息】

This commit is contained in:
weizhihong 2023-11-15 09:54:16 +08:00
parent 7a753e3ad9
commit 40662afc18
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package memory
import (
"encoding/binary"
"encoding/json"
"fmt"
"log/slog"
@ -380,6 +381,7 @@ func (s *VerifySimulation) HandleSemiPhysicalTrainControlMsg(b []byte) {
panic(dto.ErrorDto{Code: dto.ArgumentParseError, Message: err.Error()})
}
d := append(b, uint8(trainId))
d = binary.BigEndian.AppendUint16(d, uint16(train.WheelDiameter))
// 发送给动力学
dynamics.Default().SendTrainControlMessage(d)
// 存放至列车中