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