rts-sim-module/component/axle_section.go
2023-10-19 16:41:53 +08:00

32 lines
1.2 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 component
// AxleSectionState 计轴区段设备(由几个计轴检测点、一个或多个轨道区段、计轴器运算电路组成)
type AxleSectionState struct {
//true-计轴占用
Occ bool
//true-计轴出清
Clr bool
//true-计轴复位反馈
Rac bool
//true-运营原因拒绝计轴复位,如区段空闲时下发复位命令;或车轮压住传感器时收到复位命令。
Rjo bool
//true-技术原因拒绝计轴复位,主要指计轴相关设备故障时收到复位命令如车轮传感器的导线断开、AEB之间的通信故障等
Rjt bool
}
// AxleSectionDevice 计轴器设备(通过接收计轴物理区段的计轴检测点的信号来运算出计轴物理区段内的车轴数)
type AxleSectionDevice struct {
//计轴区段内车轴数
AxleCount int16
//true-正在进行计轴预复位
AxlePdrst bool
}
type AxleDeviceDrive struct {
//true-计轴直接复位
//计轴的轮对计数清零,区段转换为空闲状态
Drst bool
//true-计轴预复位
//将计轴的轮对计数清零,但是区段不会立即变成空闲区段,而是处于一种“占用”状态,在压道车通过之后确认区段空闲且计轴正常后,区段转换为空闲状态
Pdrst bool
}