Exemplo n.º 1
0
        public Main_ECU(EcuModelId modelId, byte address)
            : base(modelId, address)
        {
            Data      = new CodingData_t();
            _diagData = new List <DiagnosticData>();
            Data.SteeringBrakeSpeedTable = new ushort[12];
            _diagSrv = new Diag.A_Service_ReadDataByIdentifier();

            EcuAddress = address;
            SetDiagData();
        }
Exemplo n.º 2
0
        public Display_ECU(EcuModelId modelId, byte address)
            : base(modelId, address)
        {
            Data              = new CodingData_t();
            _diagData         = new List <DiagnosticData>();
            Data.MotorRpm     = new short[TABLE_CNT * 2];
            Data.SoC          = new short[TABLE_CNT * 2];
            Data.TrimPosition = new short[TABLE_CNT * 2];

            _diagSrv = new Diag.A_Service_ReadDataByIdentifier();

            EcuAddress = address;
            SetDiagData();
        }
Exemplo n.º 3
0
        public General_ECU(EcuModelId modelId, byte address)
            : base(modelId, address)
        {
            Data                    = new CodingData_t();
            _diagData               = new List <DiagnosticData>();
            Data.AnalogOutput       = new byte[AN_OUT_COUNT];
            Data.DigitalOutput      = new byte[DIG_OUT_COUNT];
            Data.CurrentThreshold_A = new byte[AN_OUT_COUNT];
            Data.tab                = new canRepItem[REPEATER_TABLE_SIZE];

            _diagSrv = new Diag.A_Service_ReadDataByIdentifier();

            EcuAddress = address;
            SetDiagData();
        }