Merge remote-tracking branch 'origin/master'

This commit is contained in:
joylink_zhangsai 2023-10-13 09:13:02 +08:00
commit a3f6982dab
2 changed files with 55 additions and 36 deletions

View File

@ -309,3 +309,58 @@ var (
SignalJCKXHLsqType = ecs.NewComponentType[SignalJCKXHLsq]()
SignalJCKXHLscType = ecs.NewComponentType[SignalJCKXHLsc]()
)
///////////////////////////////////////////////////////////////////////
// SignalJDXHElectronic 电路状态信号机JDXH(红-绿-黄) 进段信号机(三显示不封灯、无单黄显示、带引导)
type SignalJDXHElectronic struct {
// 2DJ灯丝继电器true-吸合
JDXH_2DJ *ecs.Entry
//灯丝继电器true-吸合
JDXH_DJ *ecs.Entry
//列车信号继电器true-吸合
JDXH_LXJ *ecs.Entry
//引导信号继电器true-吸合
JDXH_YXJ *ecs.Entry
}
// SignalJDXHFilament 信号机JDXH 灯丝状态
type SignalJDXHFilament struct {
// 物理黄灯true-灯丝正常
Uf bool
// 物理绿灯true-灯丝正常
Lf bool
// 物理红灯true-灯丝正常
Hf bool
// 物理黄灯true-亮
U bool
// 物理绿灯true-亮
L bool
// 物理红灯true-亮
H bool
}
// SignalJDXHLsq 联锁驱
type SignalJDXHLsq struct {
//true-联锁施加励磁电流驱动继电器YZHJ-引导转换继电器
JDXH_YZHJ_Q bool
////true-联锁施加励磁电流驱动继电器LXJ
JDXH_LXJ_Q bool
}
// SignalJDXHLsc 联锁采
type SignalJDXHLsc struct {
//true-继电器DJ吸起
JDXH_DJ_Xq bool
//true-继电器2DJ吸起
JDXH_2DJ_Xq bool
//true-继电器LXJ吸起
JDXH_LXJ_Xq bool
//true-继电器YZHJ和YXJ吸起
JDXH_YZHJ_YXJ_Xq bool
}
var (
SignalJDXHElectronicType = ecs.NewComponentType[SignalJDXHElectronic]()
SignalJDXHFilamentType = ecs.NewComponentType[SignalJDXHFilament]()
)

View File

@ -1,36 +0,0 @@
package component
import "joylink.club/ecs"
// SignalJDXHElectronic 电路状态信号机JDXH(红-绿-黄) 进段信号机(三显示不封灯、无单黄显示、带引导)
type SignalJDXHElectronic struct {
// 2DJ灯丝继电器true-吸合
JDXH_2DJ *ecs.Entry
//灯丝继电器true-吸合
JDXH_DJ *ecs.Entry
//列车信号继电器true-吸合
JDXH_LXJ *ecs.Entry
//引导信号继电器true-吸合
JDXH_YXJ *ecs.Entry
}
// SignalJDXHFilament 信号机JDXH 灯丝状态
type SignalJDXHFilament struct {
// 物理黄灯true-灯丝正常
Uf bool
// 物理绿灯true-灯丝正常
Lf bool
// 物理红灯true-灯丝正常
Hf bool
// 物理黄灯true-亮
U bool
// 物理绿灯true-亮
L bool
// 物理红灯true-亮
H bool
}
var (
SignalJDXHElectronicType = ecs.NewComponentType[SignalJDXHElectronic]()
SignalJDXHFilamentType = ecs.NewComponentType[SignalJDXHFilament]()
)