Geschwindigkeit anpassung durchgeführt

This commit is contained in:
Husky
2019-10-02 21:21:46 +02:00
parent b47bf96cf7
commit a5ce175d5e
7 changed files with 19 additions and 7 deletions

View File

@@ -22,7 +22,8 @@ namespace CSVParser
double druck;
int geschwindigkeit;
bool gestarted = false;
foreach (string partial in Input)
{
UVcsvStrukture strukture = new UVcsvStrukture();
@@ -42,13 +43,18 @@ namespace CSVParser
double.TryParse(parts[5].Replace("\"","").Replace('.', ','), out druck);
if (geschwindigkeit > 100) geschwindigkeit = 0;
if (geschwindigkeit > 50) geschwindigkeit = 1;
strukture.Zeitstempel = zeit;
strukture.Druck = druck;
strukture.Geschwindigkeit = geschwindigkeit;
strukture.Temperatur = temperatur;
result.Add(strukture);
if (!geschwindigkeit.Equals(0) && gestarted.Equals(false))
gestarted = true;
if(gestarted == true)
result.Add(strukture);
}
return result;