2023-11-23 13:17:09 +08:00
|
|
|
|
package component
|
|
|
|
|
|
|
|
|
|
import "joylink.club/ecs"
|
|
|
|
|
|
|
|
|
|
var (
|
2024-01-22 11:06:16 +08:00
|
|
|
|
BaliseFB = ecs.NewTag() // 固定应答器
|
|
|
|
|
BaliseWB = ecs.NewTag() // 轮径校正应答器
|
|
|
|
|
BaliseDB = ecs.NewTag() // 休眠唤醒应答器
|
|
|
|
|
BaliseVB = ecs.NewTag() // 主信号应答器
|
|
|
|
|
BaliseIB = ecs.NewTag() // 预告应答器
|
2023-11-23 13:17:09 +08:00
|
|
|
|
)
|
2024-02-06 09:30:57 +08:00
|
|
|
|
var BaliseFixedTelegramType = ecs.NewComponentType[BaliseTelegram]() //应答器固定报文
|
|
|
|
|
var BaliseVariableTelegramType = ecs.NewComponentType[BaliseTelegram]() //应答器可变报文
|
|
|
|
|
type BaliseTelegram struct {
|
2024-01-22 11:06:16 +08:00
|
|
|
|
Telegram []byte //报文
|
|
|
|
|
UserTelegram []byte //用户报文
|
|
|
|
|
}
|
2024-02-06 09:30:57 +08:00
|
|
|
|
|
|
|
|
|
var BaliseWorkStateType = ecs.NewComponentType[BaliseWorkState]() // 工作状态
|
|
|
|
|
type BaliseWorkState struct {
|
|
|
|
|
Work bool //应答器是否正常工作中(目前仅应答器停止发送报文故障会导致为false)
|
|
|
|
|
}
|