package filterIdentificatorTest

import org.lsst.ccs.subsystems.fcs.*
import org.lsst.ccs.subsystems.fcs.testbench.*
import org.lsst.ccs.subsystems.fcs.common.*
import org.lsst.ccs.subsystems.fcs.simulation.*
import org.lsst.ccs.subsystems.fcs.drivers.*
import org.lsst.ccs.description.groovy.CCSBuilder



def acPlutoGatewayName = "acSensorsGateway" // to monitor the autochanger sensors

CCSBuilder builder = ["filterIdentificator-simu"]

builder.
    main ( MainModule,
        bridge:ref("tcpProxy"))
{
    
    //-------------------------
    // BEGIN MainModule description
        // tcp Proxy
        tcpProxy (CanOpenProxy, hardwareBootTimeout:1000) {
        
        canInterface(SimuCanOpenInterface)  
        "$acPlutoGatewayName" (SimuPlutoGatewayWithFilterID,
            nodeID:0x30,serialNB:"2071")
    }
    //-------------------------
    // BEGIN Filter Identificator description
    
    filterIdentificator(FilterIdentificator)
    {//begin description of filter Identificator's children
        filterIDSensor0 ( DigitalSensor ,
            
            dioName:acPlutoGatewayName,
            inputNumero: 0,
            byteNumero: 5,
        )
        
        filterIDSensor1 ( DigitalSensor ,
            
            dioName:acPlutoGatewayName,
            inputNumero: 1,
            byteNumero: 5,
        )
        
        filterIDSensor2 ( DigitalSensor ,
            
            dioName:acPlutoGatewayName,
            inputNumero: 2,
            byteNumero: 5,
        )
        
        filterIDSensor3 ( DigitalSensor ,
            
            dioName:acPlutoGatewayName,
            inputNumero: 3,
            byteNumero: 5,
        )
        
        filterIDSensor4 ( DigitalSensor ,
            
            dioName:acPlutoGatewayName,
            inputNumero: 4,
            byteNumero: 5)
        
        
        filterIDSensor5 ( DigitalSensor ,
            
            dioName:acPlutoGatewayName,
            inputNumero: 5,
            byteNumero: 5,
        ) 
        
        
    }//end description of filter manager's children
    // END Filter Identificator description
    // ------------------------------
}//end main module
