예제 #1
0
        public OBD2Interface()
        {
            m_obd2Comm             = new OBD2Comm();
            m_commLog              = new CommLog();
            m_obd2Comm.OnReceived += new OBD2Comm.__Delegate_OnReceived(On_OBD2_Received);
            m_userpreferences      = LoadUserPreferences();
            m_settings             = LoadCommSettings();
            m_listVehicleProfiles  = LoadVehicleProfiles();
            m_strElmTimeout        = OBD2.Int2HexString(GetActiveProfile().ElmTimeout / 4);
            m_arrayListPID         = new ArrayList();
            m_arrayListDTC         = new ArrayList();
            bool[] flagArray1 = new bool[256];
            flagArray1.Initialize();
            m_bService01PIDSupport = flagArray1;
            int index1 = 0;

            do
            {
                m_bService01PIDSupport[index1] = false;
                ++index1;
            }while (index1 < 256);
            bool[] flagArray2 = new bool[256];
            flagArray2.Initialize();
            m_bService02PIDSupport = flagArray2;
            int index2 = 0;

            do
            {
                m_bService02PIDSupport[index2] = false;
                ++index2;
            }while (index2 < 256);
            bool[] flagArray3 = new bool[8];
            flagArray3.Initialize();
            m_bO2Locations = flagArray3;
            int index3 = 0;

            do
            {
                m_bO2Locations[index3] = false;
                ++index3;
            }while (index3 < 8);
        }
예제 #2
0
 public OBD2Interface()
 {
     m_obd2Comm = new OBD2Comm();
     m_commLog = new CommLog();
     m_obd2Comm.OnReceived += new OBD2Comm.__Delegate_OnReceived(On_OBD2_Received);
     m_userpreferences = LoadUserPreferences();
     m_settings = LoadCommSettings();
     m_listVehicleProfiles = LoadVehicleProfiles();
     m_strElmTimeout = OBD2.Int2HexString(GetActiveProfile().ElmTimeout / 4);
     m_arrayListPID = new ArrayList();
     m_arrayListDTC = new ArrayList();
     bool[] flagArray1 = new bool[256];
     flagArray1.Initialize();
     m_bService01PIDSupport = flagArray1;
     int index1 = 0;
     do
     {
         m_bService01PIDSupport[index1] = false;
         ++index1;
     }
     while (index1 < 256);
     bool[] flagArray2 = new bool[256];
     flagArray2.Initialize();
     m_bService02PIDSupport = flagArray2;
     int index2 = 0;
     do
     {
         m_bService02PIDSupport[index2] = false;
         ++index2;
     }
     while (index2 < 256);
     bool[] flagArray3 = new bool[8];
     flagArray3.Initialize();
     m_bO2Locations = flagArray3;
     int index3 = 0;
     do
     {
         m_bO2Locations[index3] = false;
         ++index3;
     }
     while (index3 < 8);
 }