Jelajahi Sumber

Rolling 20220827

jomjol 3 tahun lalu
induk
melakukan
b2c510d73e

+ 5 - 0
README.md

@@ -40,6 +40,11 @@ In other cases you can contact the developer via email: <img src="https://raw.gi
 
 ------
 
+##### Rolling (2022-08-27)
+
+- Updated consistency algorithm & test cases
+- Improved Reboot Dialog (thanks to @**[caco3](https://github.com/caco3)**)
+
 ##### Rolling (2022-08-26)
 
 - Updated consistency algorithm

+ 1 - 1
code/components/jomjol_flowcontroll/ClassFlowCNNGeneral.cpp

@@ -209,7 +209,7 @@ int ClassFlowCNNGeneral::ZeigerEvalHybridNeu(float zahl, float zahl_vorgaenger,
     if ((zahl_vorgaenger >= DigitalUebergangsbereichVorgaenger ) && (zahl_vorgaenger <= (10.0 - DigitalUebergangsbereichVorgaenger)))
     {
         // kein Ziffernwechsel, da Vorgänger weit genug weg ist (0+/-DigitalUebergangsbereichVorgaenger) --> zahl wird gerundet
-        if ((ergebnis_nachkomma <= 2) || (ergebnis_nachkomma >= 8))     // Band um die Ziffer --> Runden, da Ziffer im Rahmen Ungenauigkeit erreicht
+        if ((ergebnis_nachkomma <= DigitalBand) || (ergebnis_nachkomma >= (10-DigitalBand)))     // Band um die Ziffer --> Runden, da Ziffer im Rahmen Ungenauigkeit erreicht
             result = ((int) round(zahl) + 10) % 10;
         else
             result = ((int) trunc(zahl) + 10) % 10;

+ 2 - 1
code/components/jomjol_flowcontroll/ClassFlowCNNGeneral.h

@@ -27,9 +27,10 @@ protected:
     float AnalogFehler = 3.0;
     float AnalogToDigtalFehler = 0.8;
     float DigitalUnschaerfe = 0.2;
+    int DigitalBand = 3;
     float DigitalAnalogerVorgaengerUebergangsbereich = 2;
     float DigitalUebergangsbereichVorgaengerAnalogToDigit = 2;
-    float DigitalUebergangsbereichVorgaenger = 0.7;
+    float DigitalUebergangsbereichVorgaenger = 0.9;
 
     string cnnmodelfile;
     int modelxsize, modelysize, modelchannel;

+ 2 - 2
code/main/version.cpp

@@ -1,4 +1,4 @@
-const char* GIT_REV="2b60e81";
+const char* GIT_REV="6a5d551";
 const char* GIT_TAG="";
 const char* GIT_BRANCH="rolling";
-const char* BUILD_TIME="2022-08-26 21:09";
+const char* BUILD_TIME="2022-08-27 19:49";

+ 3 - 3
code/test/components/jomjol-flowcontroll/test_flowpostprocessing.cpp

@@ -138,14 +138,14 @@ void test_doFlow() {
         TEST_ASSERT_EQUAL_STRING(expected, result.c_str());
 
         // https://github.com/jomjol/AI-on-the-edge-device/issues/942
-        digits = { 0.0, 9.9, 6.8, 3.7, 0.8, 6.9, 8.7};
+        digits = { 0.0, 9.9, 6.8, 9.9, 3.7, 0.8, 6.9, 8.7};
         analogs = {        };
-        expected = "73179";
+        expected = "704179";
         result = process_doFlow(analogs, digits);
         TEST_ASSERT_EQUAL_STRING(expected, result.c_str());
 
         // https://github.com/jomjol/AI-on-the-edge-device/issues/942#issuecomment-1228343319
-        digits = { 0.0, 7.0, 1.1, 4.7, 3.7, 5.9, 9.0, 2.7};
+        digits = { 9.9, 6.8, 1.1, 4.7, 2.7, 6.0, 9.0, 2.8};  // changed 3.7 --> 2.7 (see picture in issue)
         analogs = {        };
         expected = "7153693";
         result = process_doFlow(analogs, digits);

+ 2 - 2
code/version.cpp

@@ -1,4 +1,4 @@
-const char* GIT_REV="2b60e81";
+const char* GIT_REV="6a5d551";
 const char* GIT_TAG="";
 const char* GIT_BRANCH="rolling";
-const char* BUILD_TIME="2022-08-26 21:09";
+const char* BUILD_TIME="2022-08-27 19:49";

TEMPAT SAMPAH
firmware/bootloader.bin


TEMPAT SAMPAH
firmware/dig-cont_0570_s3.tflite


TEMPAT SAMPAH
firmware/dig-cont_0570_s3_q.tflite


TEMPAT SAMPAH
firmware/firmware.bin