2023-07-26 17:02:53 +08:00
|
|
|
|
package dynamics
|
|
|
|
|
|
|
|
|
|
type TurnoutInfo struct {
|
2023-08-09 15:34:19 +08:00
|
|
|
|
lifeSignal uint16
|
|
|
|
|
Code uint16
|
|
|
|
|
NPosition bool
|
|
|
|
|
RPosition bool
|
2023-07-26 17:02:53 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TrainInfo struct {
|
|
|
|
|
//生命信号
|
|
|
|
|
LifeSignal uint16
|
|
|
|
|
//列车号(车辆)
|
|
|
|
|
Number uint8
|
2023-08-07 14:08:02 +08:00
|
|
|
|
//列车长度 cm
|
2023-07-26 17:02:53 +08:00
|
|
|
|
Len uint16
|
|
|
|
|
//列车所在轨道link
|
|
|
|
|
Link uint8
|
2023-08-07 14:08:02 +08:00
|
|
|
|
//列车所在link偏移量(mm)
|
2023-07-26 17:02:53 +08:00
|
|
|
|
LinkOffset uint32
|
|
|
|
|
//列车所在位置坡度值(‰)
|
2023-08-07 14:08:02 +08:00
|
|
|
|
Slope uint16
|
2023-07-26 17:02:53 +08:00
|
|
|
|
//列车所在位置坡度走势(上/下坡)
|
|
|
|
|
UpSlope bool
|
2023-08-09 15:34:19 +08:00
|
|
|
|
//列车当前运行方向(偏移量增大/减小方向)
|
2023-07-26 17:02:53 +08:00
|
|
|
|
Up bool
|
2023-08-07 14:08:02 +08:00
|
|
|
|
//实际运行阻力(总)(N)
|
2023-09-28 13:56:54 +08:00
|
|
|
|
TotalResistance int32
|
2023-08-07 14:08:02 +08:00
|
|
|
|
//阻力1(空气阻力)(N)
|
2023-09-28 13:56:54 +08:00
|
|
|
|
AirResistance int32
|
2023-08-07 14:08:02 +08:00
|
|
|
|
//阻力2(坡道阻力)(N)
|
2023-09-28 13:56:54 +08:00
|
|
|
|
SlopeResistance int32
|
2023-08-07 14:08:02 +08:00
|
|
|
|
//阻力3(曲线阻力)(N)
|
2023-09-28 13:56:54 +08:00
|
|
|
|
CurveResistance int32
|
2023-08-07 14:08:02 +08:00
|
|
|
|
//列车运行速度(m/s)
|
2023-08-02 15:47:48 +08:00
|
|
|
|
Speed float32
|
2023-08-07 14:08:02 +08:00
|
|
|
|
//头车速传1速度值(m/s)
|
2023-08-02 15:47:48 +08:00
|
|
|
|
HeadSpeed1 float32
|
2023-08-07 14:08:02 +08:00
|
|
|
|
//头车速度2速度值(m/s)
|
2023-08-02 15:47:48 +08:00
|
|
|
|
HeadSpeed2 float32
|
2023-08-07 14:08:02 +08:00
|
|
|
|
//尾车速传1速度值(m/s)
|
2023-08-02 15:47:48 +08:00
|
|
|
|
TailSpeed1 float32
|
2023-08-07 14:08:02 +08:00
|
|
|
|
//尾车速度2速度值(m/s)
|
2023-08-02 15:47:48 +08:00
|
|
|
|
TailSpeed2 float32
|
2023-08-07 14:08:02 +08:00
|
|
|
|
//头车雷达速度值(m/s)
|
2023-08-02 15:47:48 +08:00
|
|
|
|
HeadRadarSpeed float32
|
2023-08-07 14:08:02 +08:00
|
|
|
|
//尾车雷达速度值(m/s)
|
2023-08-02 15:47:48 +08:00
|
|
|
|
TailRadarSpeed float32
|
2023-10-07 16:40:24 +08:00
|
|
|
|
//加速度(m/s^2)
|
|
|
|
|
Acceleration float32
|
2023-07-26 17:02:53 +08:00
|
|
|
|
}
|