【修改联锁收集继电器状态】
This commit is contained in:
parent
3fbf0bf8cd
commit
672060a497
|
@ -347,13 +347,10 @@ func (s *VerifySimulation) GetInterlockRunConfig() *config.InterlockConfig {
|
|||
func (s *VerifySimulation) CollectInterlockRelayInfo() []*message.InterlockSendMsgPkg {
|
||||
var msgPkgs []*message.InterlockSendMsgPkg
|
||||
for _, mapId := range s.MapIds { // 获取继电器地图信息
|
||||
var mapData *graphicData.RelayCabinetGraphicStorage
|
||||
switch QueryOnlyGiType(mapId) {
|
||||
case graphicData.PictureType_RelayCabinetLayout: // 继电器柜
|
||||
mapData = QueryGiData[*graphicData.RelayCabinetGraphicStorage](mapId)
|
||||
default:
|
||||
if QueryOnlyGiType(mapId) != graphicData.PictureType_RelayCabinetLayout { // 继电器柜
|
||||
continue
|
||||
}
|
||||
mapData := QueryGiData[*graphicData.RelayCabinetGraphicStorage](mapId)
|
||||
// 配置继电器为空
|
||||
dataLenght := len(mapData.CiCjList.CjList) * int(mapData.CiCjList.DsCount)
|
||||
if dataLenght == 0 {
|
||||
|
|
Loading…
Reference in New Issue