mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 20:46:52 +03:00
Rolling 20210830
This commit is contained in:
@@ -47,6 +47,11 @@ In other cases you can contact the developer via email: <img src="https://raw.gi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
##### Rolling (2021-08-30)
|
||||||
|
|
||||||
|
* dedicated NaN-test case
|
||||||
|
* based on v8.2.0
|
||||||
|
|
||||||
##### 8.2.0 - Multi Meter Support (2021-08-24)
|
##### 8.2.0 - Multi Meter Support (2021-08-24)
|
||||||
|
|
||||||
* Improve server responsiveness
|
* Improve server responsiveness
|
||||||
|
|||||||
@@ -233,19 +233,15 @@ void ClassFlowPostProcessing::SavePreValue()
|
|||||||
|
|
||||||
ClassFlowPostProcessing::ClassFlowPostProcessing(std::vector<ClassFlow*>* lfc)
|
ClassFlowPostProcessing::ClassFlowPostProcessing(std::vector<ClassFlow*>* lfc)
|
||||||
{
|
{
|
||||||
// FlowRateAct = 0;
|
|
||||||
PreValueUse = false;
|
PreValueUse = false;
|
||||||
PreValueAgeStartup = 30;
|
PreValueAgeStartup = 30;
|
||||||
ErrorMessage = false;
|
ErrorMessage = false;
|
||||||
ListFlowControll = NULL;
|
ListFlowControll = NULL;
|
||||||
// PreValueOkay = false;
|
|
||||||
// DecimalShift = 0;
|
|
||||||
// ErrorMessageText = "";
|
|
||||||
// timeStamp = "";
|
|
||||||
FilePreValue = FormatFileName("/sdcard/config/prevalue.ini");
|
FilePreValue = FormatFileName("/sdcard/config/prevalue.ini");
|
||||||
ListFlowControll = lfc;
|
ListFlowControll = lfc;
|
||||||
flowMakeImage = NULL;
|
flowMakeImage = NULL;
|
||||||
UpdatePreValueINI = false;
|
UpdatePreValueINI = false;
|
||||||
|
IgnoreLeadingNaN = false;
|
||||||
|
|
||||||
for (int i = 0; i < ListFlowControll->size(); ++i)
|
for (int i = 0; i < ListFlowControll->size(); ++i)
|
||||||
{
|
{
|
||||||
@@ -384,6 +380,13 @@ bool ClassFlowPostProcessing::ReadParameter(FILE* pfile, string& aktparamgraph)
|
|||||||
if (toUpper(zerlegt[1]) == "TRUE")
|
if (toUpper(zerlegt[1]) == "TRUE")
|
||||||
ErrorMessage = true;
|
ErrorMessage = true;
|
||||||
}
|
}
|
||||||
|
if ((toUpper(_param) == "IGNORELEADINGNAN") && (zerlegt.size() > 1))
|
||||||
|
{
|
||||||
|
if (toUpper(zerlegt[1]) == "TRUE")
|
||||||
|
IgnoreLeadingNaN = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ((toUpper(_param) == "PREVALUEAGESTARTUP") && (zerlegt.size() > 1))
|
if ((toUpper(_param) == "PREVALUEAGESTARTUP") && (zerlegt.size() > 1))
|
||||||
{
|
{
|
||||||
PreValueAgeStartup = std::stoi(zerlegt[1]);
|
PreValueAgeStartup = std::stoi(zerlegt[1]);
|
||||||
@@ -565,6 +568,17 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
|
|||||||
|
|
||||||
NUMBERS[j]->ReturnRawValue = ShiftDecimal(NUMBERS[j]->ReturnRawValue, NUMBERS[j]->DecimalShift);
|
NUMBERS[j]->ReturnRawValue = ShiftDecimal(NUMBERS[j]->ReturnRawValue, NUMBERS[j]->DecimalShift);
|
||||||
|
|
||||||
|
|
||||||
|
///////////////// SPEZIALFALL für User Gustl ///////////////////////////////////////////////////////
|
||||||
|
if (IgnoreLeadingNaN)
|
||||||
|
{
|
||||||
|
while ((NUMBERS[j]->ReturnValue.length() > 1) && (NUMBERS[j]->ReturnValue[0] == 'N'))
|
||||||
|
{
|
||||||
|
NUMBERS[j]->ReturnValue.erase(0, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
rohwert = NUMBERS[j]->ReturnRawValue;
|
rohwert = NUMBERS[j]->ReturnRawValue;
|
||||||
|
|
||||||
if (!PreValueUse || !NUMBERS[j]->PreValueOkay)
|
if (!PreValueUse || !NUMBERS[j]->PreValueOkay)
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
|
|
||||||
struct NumberPost {
|
struct NumberPost {
|
||||||
// int PreValueAgeStartup;
|
|
||||||
float MaxRateValue;
|
float MaxRateValue;
|
||||||
bool useMaxRateValue;
|
bool useMaxRateValue;
|
||||||
bool ErrorMessage;
|
bool ErrorMessage;
|
||||||
@@ -30,14 +29,10 @@ struct NumberPost {
|
|||||||
int AnzahlDigital;
|
int AnzahlDigital;
|
||||||
int DecimalShift;
|
int DecimalShift;
|
||||||
int Nachkomma;
|
int Nachkomma;
|
||||||
// ClassFlowAnalog* ANALOG;
|
|
||||||
// ClassFlowDigit* DIGIT;
|
|
||||||
|
|
||||||
digit *digit_roi;
|
digit *digit_roi;
|
||||||
analog *analog_roi;
|
analog *analog_roi;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
string name;
|
string name;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -53,6 +48,7 @@ protected:
|
|||||||
|
|
||||||
int PreValueAgeStartup;
|
int PreValueAgeStartup;
|
||||||
bool ErrorMessage;
|
bool ErrorMessage;
|
||||||
|
bool IgnoreLeadingNaN; // SPEZIALFALL für User Gustl
|
||||||
|
|
||||||
|
|
||||||
ClassFlowAnalog* flowAnalog;
|
ClassFlowAnalog* flowAnalog;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const char* GIT_REV="7ae08e5";
|
const char* GIT_REV="eb02e0a";
|
||||||
const char* GIT_TAG="";
|
const char* GIT_TAG="";
|
||||||
const char* GIT_BRANCH="master";
|
const char* GIT_BRANCH="rolling";
|
||||||
const char* BUILD_TIME="2021-08-24 08:35";
|
const char* BUILD_TIME="2021-08-30 21:07";
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
const char* GIT_REV="7ae08e5";
|
const char* GIT_REV="eb02e0a";
|
||||||
const char* GIT_TAG="";
|
const char* GIT_TAG="";
|
||||||
const char* GIT_BRANCH="master";
|
const char* GIT_BRANCH="rolling";
|
||||||
const char* BUILD_TIME="2021-08-24 08:35";
|
const char* BUILD_TIME="2021-08-30 21:07";
|
||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user