【修改联锁收集继电器状态】

This commit is contained in:
weizhihong 2023-10-30 10:09:58 +08:00
parent 3fbf0bf8cd
commit 672060a497
1 changed files with 2 additions and 5 deletions

View File

@ -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 {