Jelajahi Sumber

Nightly 20201019

jomjol 5 tahun lalu
induk
melakukan
0d90977917
6 mengubah file dengan 19 tambahan dan 17 penghapusan
  1. 5 1
      README.md
  2. 8 10
      code/lib/jomjol_flowcontroll/ClassFlowPostProcessing.cpp
  3. 3 3
      code/src/version.cpp
  4. 3 3
      code/version.cpp
  5. TEMPAT SAMPAH
      firmware/bootloader.bin
  6. TEMPAT SAMPAH
      firmware/firmware.bin

+ 5 - 1
README.md

@@ -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)
 

+ 8 - 10
code/lib/jomjol_flowcontroll/ClassFlowPostProcessing.cpp

@@ -335,25 +335,23 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
     Value = std::stof(zw);
     if (checkDigitIncreaseConsistency)
     {
-//        Value = checkDigitConsistency(Value, DecimalShift, isanalog);
+        Value = checkDigitConsistency(Value, DecimalShift, isanalog);
     }
 
     zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift);
 
     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;
         zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift);
     }
-    else
+
+    if (useMaxRateValue && (abs(Value - PreValue) > MaxRateValue))
     {
-        if (useMaxRateValue && (abs(Value - PreValue) > MaxRateValue))
-        {
-            error = "Rate too high - Returned old value - read value: " + zwvalue;
-            Value = PreValue;
-            zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift);
-        }
+        error = error + "Rate too high - Returned old value - read value: " + zwvalue + " ";
+        Value = PreValue;
+        zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift);
     }
 
     ReturnValueNoError = zwvalue;
@@ -426,7 +424,7 @@ float ClassFlowPostProcessing::checkDigitConsistency(float input, int _decilamsh
     float zw;
 
     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++;
     }

+ 3 - 3
code/src/version.cpp

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

+ 3 - 3
code/version.cpp

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

TEMPAT SAMPAH
firmware/bootloader.bin


TEMPAT SAMPAH
firmware/firmware.bin