49 lines
1.0 KiB
Go
49 lines
1.0 KiB
Go
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 uint16
|
||
//阻力1(空气阻力)(KN)
|
||
Resistance1 uint16
|
||
//阻力2(坡道阻力)(KN)
|
||
Resistance2 uint16
|
||
//阻力3(曲线阻力)(KN)
|
||
Resistance3 uint16
|
||
//列车运行速度(km/h)
|
||
Speed uint16
|
||
//头车速传1速度值(km/h)
|
||
HeadSpeed1 uint16
|
||
//头车速度2速度值
|
||
HeadSpeed2 uint16
|
||
//尾车速传1速度值
|
||
TailSpeed1 uint16
|
||
//尾车速度2速度值
|
||
TailSpeed2 uint16
|
||
//头车雷达速度值
|
||
HeadRadarSpeed uint16
|
||
//尾车雷达速度值
|
||
TailRadarSpeed uint16
|
||
}
|