【注释轮径信息】
This commit is contained in:
parent
40662afc18
commit
bef31c4dbb
@ -1,7 +1,6 @@
|
|||||||
package memory
|
package memory
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
@ -381,7 +380,7 @@ 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))
|
||||||
d = binary.BigEndian.AppendUint16(d, uint16(train.WheelDiameter))
|
//d = binary.BigEndian.AppendUint16(d, uint16(train.WheelDiameter))
|
||||||
// 发送给动力学
|
// 发送给动力学
|
||||||
dynamics.Default().SendTrainControlMessage(d)
|
dynamics.Default().SendTrainControlMessage(d)
|
||||||
// 存放至列车中
|
// 存放至列车中
|
||||||
|
Loading…
Reference in New Issue
Block a user