【推送半实物信息时增加列车轮径信息】
This commit is contained in:
parent
7a753e3ad9
commit
40662afc18
@ -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)
|
||||
// 存放至列车中
|
||||
|
Loading…
Reference in New Issue
Block a user