diff --git a/BerichtGen/makeGraphic.cs b/BerichtGen/makeGraphic.cs index d125b83..bbaf596 100644 --- a/BerichtGen/makeGraphic.cs +++ b/BerichtGen/makeGraphic.cs @@ -63,7 +63,7 @@ namespace BerichtGen break; case "Druck": - axis.Title = "[bar]"; + axis.Title = "[mbar]"; break; case "Geschwindigkeit": diff --git a/CSVParser/BlueLight.cs b/CSVParser/BlueLight.cs index e1d5f73..7e5b54c 100644 --- a/CSVParser/BlueLight.cs +++ b/CSVParser/BlueLight.cs @@ -43,11 +43,13 @@ namespace CSVParser int.TryParse(parts[4].Replace("\"",""), out geschwindigkeit); double.TryParse(parts[5].Replace("\"","").Replace('.', ','), out druck); + string x = (druck*1000).ToString(); + if (geschwindigkeit > 100) geschwindigkeit = 0; if (geschwindigkeit > 50) geschwindigkeit = 1; strukture.Zeitstempel = zeit; - strukture.Druck = druck; + strukture.Druck = int.Parse(x); strukture.Geschwindigkeit = geschwindigkeit; strukture.Temperatur = temperatur; diff --git a/CSVParser/UVRelining.cs b/CSVParser/UVRelining.cs index 9a570a1..c6d0523 100644 --- a/CSVParser/UVRelining.cs +++ b/CSVParser/UVRelining.cs @@ -45,7 +45,7 @@ namespace CSVParser uVcsvStrukture.Zeitstempel = zeit; - uVcsvStrukture.Druck = druck; + uVcsvStrukture.Druck = 1;//druck; uVcsvStrukture.Temperatur = temperatur; uVcsvStrukture.Geschwindigkeit = geschwindigkeit; result.Add(uVcsvStrukture); diff --git a/SanShared/UVcsvStrukture.cs b/SanShared/UVcsvStrukture.cs index 3bb150d..c8bba70 100644 --- a/SanShared/UVcsvStrukture.cs +++ b/SanShared/UVcsvStrukture.cs @@ -13,7 +13,7 @@ namespace SanShared { DateTime zeitstempel; double temperatur; - double druck; + int druck; int geschwindigkeit; /// /// Zeitstempel vom Eintrag @@ -26,7 +26,7 @@ namespace SanShared /// /// Druckanzeige vom Eintrag /// - public double Druck { get => druck; set => druck = value; } + public int Druck { get => druck; set => druck = value; } /// /// Geschwindigkeit vom Eintrag ///