Nightly 20201019

This commit is contained in:
jomjol
2020-10-19 07:04:26 +02:00
parent 7e57e85e75
commit 0d90977917
6 changed files with 19 additions and 17 deletions

View File

@@ -27,7 +27,11 @@ A 3d-printable housing can be found here: https://www.thingiverse.com/thing:4571
##### Rolling - (2020-10-14) ##### Rolling - (2020-10-18)
* New implementation of "checkDigitConsistency" now also for digits
* Bug fixing in Postprocessing: MaxRating and NegativeValue did not work properly in some cases.
* based on v3.0.0 (2020-10-14) * based on v3.0.0 (2020-10-14)

View File

@@ -335,25 +335,23 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
Value = std::stof(zw); Value = std::stof(zw);
if (checkDigitIncreaseConsistency) if (checkDigitIncreaseConsistency)
{ {
// Value = checkDigitConsistency(Value, DecimalShift, isanalog); Value = checkDigitConsistency(Value, DecimalShift, isanalog);
} }
zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift); zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift);
if ((!AllowNegativeRates) && (Value < PreValue)) if ((!AllowNegativeRates) && (Value < PreValue))
{ {
error = "Negative Rate - Returned old value - read value: " + zwvalue; error = error + "Negative Rate - Returned old value - read value: " + zwvalue + " ";
Value = PreValue; Value = PreValue;
zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift); zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift);
} }
else
if (useMaxRateValue && (abs(Value - PreValue) > MaxRateValue))
{ {
if (useMaxRateValue && (abs(Value - PreValue) > MaxRateValue)) error = error + "Rate too high - Returned old value - read value: " + zwvalue + " ";
{ Value = PreValue;
error = "Rate too high - Returned old value - read value: " + zwvalue; zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift);
Value = PreValue;
zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift);
}
} }
ReturnValueNoError = zwvalue; ReturnValueNoError = zwvalue;
@@ -426,7 +424,7 @@ float ClassFlowPostProcessing::checkDigitConsistency(float input, int _decilamsh
float zw; float zw;
pot = _decilamshift; pot = _decilamshift;
if (!_isanalog) // falls es keine analogwerte gibt, kann die letzte nicht bewerte werden if (!_isanalog) // falls es keine analogwerte gibt, kann die letzte nicht bewertet werden
{ {
pot++; pot++;
} }

View File

@@ -1,4 +1,4 @@
const char* GIT_REV="2614481"; const char* GIT_REV="7e57e85";
const char* GIT_TAG=""; const char* GIT_TAG="";
const char* GIT_BRANCH="master"; const char* GIT_BRANCH="rolling";
const char* BUILD_TIME="2020-10-14 18:40"; const char* BUILD_TIME="2020-10-18 09:07";

View File

@@ -1,4 +1,4 @@
const char* GIT_REV="2614481"; const char* GIT_REV="7e57e85";
const char* GIT_TAG=""; const char* GIT_TAG="";
const char* GIT_BRANCH="master"; const char* GIT_BRANCH="rolling";
const char* BUILD_TIME="2020-10-14 18:40"; const char* BUILD_TIME="2020-10-18 09:07";

Binary file not shown.

Binary file not shown.