Ejemplo n.º 1
0
        private void SensorLoggingThread()
        {
            while (_sensorLoggingThreadStatus)
            {
                Thread.Sleep(10);

                if (_spaceSensorCSVQueue.Count == 0)
                {
                    continue;
                }

                SpaceSensorCSVLineItem csvLineItem = _spaceSensorCSVQueue.Dequeue();
                string[] fullSensorDataRow         = new string[22];

                csvLineItem.RowHeader.CopyTo(fullSensorDataRow, 0);
                csvLineItem.Sensor1Data.CopyTo(fullSensorDataRow, csvLineItem.RowHeader.Length);
                csvLineItem.Sensor2Data.CopyTo(fullSensorDataRow, csvLineItem.RowHeader.Length + csvLineItem.Sensor1Data.Length);

                base.addInformationToLogFile(fullSensorDataRow);
            }
        }
 public void logSpaceSensorCSVLineItem(SpaceSensorCSVLineItem csvLineItem)
 {
     m_CSVFileWriter.addCSVLineItemToLogFile(csvLineItem);
 }
Ejemplo n.º 3
0
 public void logSpaceSensorCSVLineItem(SpaceSensorCSVLineItem csvLineItem)
 {
     m_CSVFileWriter.addCSVLineItemToLogFile(csvLineItem);
 }