rts-sim-testing-service/dynamics/udpData.go

49 lines
1.1 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package dynamics
type TurnoutInfo struct {
Code uint16
NPosition bool
RPosition bool
}
type TrainInfo struct {
//生命信号
LifeSignal uint16
//列车号(车辆)
Number uint8
//列车长度
Len uint16
//列车所在轨道link
Link uint8
//列车所在link偏移量cm
LinkOffset uint32
//列车所在位置坡度值(‰)
Slope uint8
//列车所在位置坡度走势(上/下坡)
UpSlope bool
//列车当前运行方向(上/下行)
Up bool
//实际运行阻力KN
TotalResistance float32
//阻力1空气阻力KN
AirResistance float32
//阻力2坡道阻力KN
SlopeResistance float32
//阻力3曲线阻力KN
CurveResistance float32
//列车运行速度km/h
Speed float32
//头车速传1速度值km/h
HeadSpeed1 float32
//头车速度2速度值
HeadSpeed2 float32
//尾车速传1速度值
TailSpeed1 float32
//尾车速度2速度值
TailSpeed2 float32
//头车雷达速度值
HeadRadarSpeed float32
//尾车雷达速度值
TailRadarSpeed float32
}