diff --git a/README.md b/README.md index 95b8123a..863c641f 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,10 @@ In other cases you can contact the developer via email: GetOutClassification(0, 10); - _nachkomma = tflite->GetOutClassification(11, 22); + _nachkomma = tflite->GetOutClassification(11, 21); string _zwres = "Nach Invoke - Nummer: " + to_string(_num) + " Nachkomma: " + to_string(_nachkomma); diff --git a/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp index 2ff8a381..027f34a1 100644 --- a/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp +++ b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp @@ -89,7 +89,7 @@ bool ClassFlowPostProcessing::LoadPreValue(void) if (NUMBERS[j]->name == name) { NUMBERS[j]->PreValue = stof(zwvalue.c_str()); - NUMBERS[j]->ReturnPreValue = RundeOutput(NUMBERS[j]->PreValue, NUMBERS[j]->Nachkomma); + NUMBERS[j]->ReturnPreValue = RundeOutput(NUMBERS[j]->PreValue, NUMBERS[j]->Nachkomma + 1); // SIcherheitshalber 1 Stelle mehr, da ggf. Exgtended Resolution an ist (wird erst beim ersten Durchlauf gesetzt) time_t tStart; int yy, month, dd, hh, mm, ss; @@ -123,7 +123,7 @@ bool ClassFlowPostProcessing::LoadPreValue(void) if (NUMBERS[j]->digit_roi || NUMBERS[j]->analog_roi) { - NUMBERS[j]->ReturnValue = RundeOutput(NUMBERS[j]->Value, NUMBERS[j]->Nachkomma); + NUMBERS[j]->ReturnValue = RundeOutput(NUMBERS[j]->Value, NUMBERS[j]->Nachkomma + 1); // SIcherheitshalber 1 Stelle mehr, da ggf. Exgtended Resolution an ist (wird erst beim ersten Durchlauf gesetzt) NUMBERS[j]->ReturnValueNoError = NUMBERS[j]->ReturnValue; } } @@ -595,13 +595,14 @@ bool ClassFlowPostProcessing::doFlow(string zwtime) if (NUMBERS[j]->digit_roi) { - if (NUMBERS[j]->analog_roi) + if (NUMBERS[j]->analog_roi) NUMBERS[j]->ReturnRawValue = flowDigit->getReadout(j, false); else NUMBERS[j]->ReturnRawValue = flowDigit->getReadout(j, NUMBERS[j]->isExtendedResolution); // Extended Resolution nur falls es keine analogen Ziffern gibt } if (NUMBERS[j]->digit_roi && NUMBERS[j]->analog_roi) NUMBERS[j]->ReturnRawValue = NUMBERS[j]->ReturnRawValue + "."; + if (NUMBERS[j]->analog_roi) NUMBERS[j]->ReturnRawValue = NUMBERS[j]->ReturnRawValue + flowAnalog->getReadout(j, NUMBERS[j]->isExtendedResolution); @@ -822,14 +823,14 @@ float ClassFlowPostProcessing::checkDigitConsistency(float input, int _decilamsh while (pot <= pot_max) { zw = input / pow(10, pot-1); - aktdigit_before = ((int) zw) % 10; + aktdigit_before = ((int) zw + 10) % 10; zw = _preValue / pow(10, pot-1); - olddigit_before = ((int) zw) % 10; + olddigit_before = ((int) zw + 10) % 10; zw = input / pow(10, pot); - aktdigit = ((int) zw) % 10; + aktdigit = ((int) zw + 10) % 10; zw = _preValue / pow(10, pot); - olddigit = ((int) zw) % 10; + olddigit = ((int) zw + 10) % 10; no_nulldurchgang = (olddigit_before <= aktdigit_before); diff --git a/code/components/jomjol_tfliteclass/CTfLiteClass.cpp b/code/components/jomjol_tfliteclass/CTfLiteClass.cpp index b97a122f..362fc8c3 100644 --- a/code/components/jomjol_tfliteclass/CTfLiteClass.cpp +++ b/code/components/jomjol_tfliteclass/CTfLiteClass.cpp @@ -44,12 +44,12 @@ int CTfLiteClass::GetOutClassification(int _von, int _bis) //printf("\n number output neurons: %d\n\n", numeroutput); if (_bis == -1) - _bis = numeroutput; + _bis = numeroutput -1; if (_von == -1) _von = 0; - if (_bis > numeroutput) + if (_bis >= numeroutput) { printf("ANZAHL OUTPUT NEURONS passt nicht zu geforderter Classifizierung!"); return -1; @@ -57,7 +57,7 @@ int CTfLiteClass::GetOutClassification(int _von, int _bis) zw_max = output2->data.f[_von]; zw_class = _von; - for (int i = _von+1; i <= _bis; ++i) + for (int i = _von + 1; i <= _bis; ++i) { zw = output2->data.f[i]; if (zw > zw_max) diff --git a/code/main/version.cpp b/code/main/version.cpp index b4dcaecf..1e76de84 100644 --- a/code/main/version.cpp +++ b/code/main/version.cpp @@ -1,4 +1,4 @@ -const char* GIT_REV="147d974"; -const char* GIT_TAG=""; -const char* GIT_BRANCH="master"; -const char* BUILD_TIME="2021-09-25 18:55"; \ No newline at end of file +const char* GIT_REV="18f6e83"; +const char* GIT_TAG="v8.4.0"; +const char* GIT_BRANCH="rolling"; +const char* BUILD_TIME="2021-10-02 14:29"; \ No newline at end of file diff --git a/code/version.cpp b/code/version.cpp index b4dcaecf..1e76de84 100644 --- a/code/version.cpp +++ b/code/version.cpp @@ -1,4 +1,4 @@ -const char* GIT_REV="147d974"; -const char* GIT_TAG=""; -const char* GIT_BRANCH="master"; -const char* BUILD_TIME="2021-09-25 18:55"; \ No newline at end of file +const char* GIT_REV="18f6e83"; +const char* GIT_TAG="v8.4.0"; +const char* GIT_BRANCH="rolling"; +const char* BUILD_TIME="2021-10-02 14:29"; \ No newline at end of file diff --git a/firmware/bootloader.bin b/firmware/bootloader.bin index e41674fb..86053270 100644 Binary files a/firmware/bootloader.bin and b/firmware/bootloader.bin differ diff --git a/firmware/firmware.bin b/firmware/firmware.bin index 15e70740..aa9e1f25 100644 Binary files a/firmware/firmware.bin and b/firmware/firmware.bin differ diff --git a/firmware/html.zip b/firmware/html.zip index 52dfc3f5..b24c671a 100644 Binary files a/firmware/html.zip and b/firmware/html.zip differ diff --git a/sd-card/html/edit_explain_6.html b/sd-card/html/edit_explain_6.html index 2a465bad..f53e08bc 100644 --- a/sd-card/html/edit_explain_6.html +++ b/sd-card/html/edit_explain_6.html @@ -62,7 +62,7 @@ p {font-size: 1em;} } ParseConfig(); param = getConfigParameters(); - param["System"]["SetupMode"]["enabled"] = false; + param["System"]["SetupMode"]["enabled"] = true; param["System"]["SetupMode"]["value1"] = "false"; WriteConfigININew(); diff --git a/sd-card/html/readconfigparam.js b/sd-card/html/readconfigparam.js index 14c17fa9..20562a18 100644 --- a/sd-card/html/readconfigparam.js +++ b/sd-card/html/readconfigparam.js @@ -31,7 +31,6 @@ function ParseConfig() { ParamAddValue(param, catname, "ImageQuality"); ParamAddValue(param, catname, "ImageSize"); ParamAddValue(param, catname, "FixedExposure"); - ParamAddValue(param, catname, "UseGPIOControlledIllumination"); var catname = "Alignment"; category[catname] = new Object(); @@ -54,7 +53,6 @@ function ParseConfig() { ParamAddValue(param, catname, "LogImageLocation"); ParamAddValue(param, catname, "LogfileRetentionInDays"); ParamAddValue(param, catname, "ModelInputSize", 2); -// ParamAddValue(param, catname, "ExtendedResolution"); var catname = "Analog"; category[catname] = new Object(); @@ -65,7 +63,6 @@ function ParseConfig() { ParamAddValue(param, catname, "LogImageLocation"); ParamAddValue(param, catname, "LogfileRetentionInDays"); ParamAddValue(param, catname, "ModelInputSize", 2); -// ParamAddValue(param, catname, "ExtendedResolution"); var catname = "PostProcessing"; category[catname] = new Object(); @@ -81,7 +78,6 @@ function ParseConfig() { ParamAddValue(param, catname, "IgnoreLeadingNaN", 1, true); ParamAddValue(param, catname, "ErrorMessage"); ParamAddValue(param, catname, "CheckDigitIncreaseConsistency"); -// ParamAddValue(param, catname, "IgnoreLeadingNaN"); var catname = "MQTT"; category[catname] = new Object(); diff --git a/sd-card/html/version.txt b/sd-card/html/version.txt index 3b9bddfc..fe46e0dd 100644 --- a/sd-card/html/version.txt +++ b/sd-card/html/version.txt @@ -1 +1 @@ -10.1.0 \ No newline at end of file +10.2.0 \ No newline at end of file