Ejemplo n.º 1
0
        private string GetCalibrationConfig(CalibrationSpeed calibrationSpeed, CalibrationScanParameter calibrationScanParameter, CalibrationDataSampling calibrationDataSampling)
        =>
        $@"{{
	                        ""speed"": {(int)calibrationSpeed},
	                        ""scan parameter"": {(int)calibrationScanParameter},
	                        ""data sampling"": {(int)calibrationDataSampling}
                        }}";
Ejemplo n.º 2
0
        private string GetRow4FileReport(
            int depthProfileSet,
            VideoStreamProfile profile,
            int calibrationSet,
            CalibrationSpeed calibrationSpeed,
            CalibrationScanParameter calibrationScanParameter,
            CalibrationDataSampling calibrationDataSampling,
            int timeout,
            TimeSpan calibrationTakes,
            string deviceHealth,
            string deviceHealthDescription,
            string comments = ""
            )
        {
            var row = new List <string>();

            row.Add($"{depthProfileSet}");
            row.Add($"{profile.Width}");
            row.Add($"{profile.Height}");
            row.Add($"{profile.Framerate}");
            row.Add($"{profile.Format}");
            row.Add($"{calibrationSet}");
            row.Add($"{(int)calibrationSpeed}");
            row.Add($"{(int)calibrationScanParameter}");
            row.Add($"{(int)calibrationDataSampling}");
            row.Add($"{calibrationSpeed}");
            row.Add($"{calibrationScanParameter}");
            row.Add($"{calibrationDataSampling}");
            //row.Add($@"{timeout:mm\:ss\.fff}");
            row.Add($@"{calibrationTakes:mm\:ss\.fff}");
            row.Add($"{deviceHealth}");
            row.Add($"{deviceHealthDescription}");
            row.Add($"{comments}");

            return(string.Join(",", row));
        }