mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-13 06:56:56 +03:00
update noerror=true
This commit is contained in:
@@ -157,10 +157,10 @@ bool ClassFlowControll::doFlow(string time)
|
||||
return result;
|
||||
}
|
||||
|
||||
string ClassFlowControll::getReadout(bool _rawvalue = false)
|
||||
string ClassFlowControll::getReadout(bool _rawvalue = false, bool _noerror = false)
|
||||
{
|
||||
if (flowpostprocessing)
|
||||
return flowpostprocessing->getReadoutParam(_rawvalue);
|
||||
return flowpostprocessing->getReadoutParam(_rawvalue, _noerror);
|
||||
|
||||
string zw = "";
|
||||
string result = "";
|
||||
|
||||
@@ -27,7 +27,7 @@ protected:
|
||||
public:
|
||||
void InitFlow(std::string config);
|
||||
bool doFlow(string time);
|
||||
string getReadout(bool _rawvalue);
|
||||
string getReadout(bool _rawvalue, bool _noerror);
|
||||
string UpdatePrevalue(std::string _newvalue);
|
||||
string GetPrevalue();
|
||||
bool ReadParameter(FILE* pfile, string& aktparamgraph);
|
||||
|
||||
@@ -154,6 +154,7 @@ bool ClassFlowPostProcessing::ReadParameter(FILE* pfile, string& aktparamgraph)
|
||||
std::stringstream stream;
|
||||
stream << std::fixed << std::setprecision(AnzahlNachkomma) << Value;
|
||||
ReturnValue = stream.str();
|
||||
ReturnValueNoError = ReturnValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -304,6 +305,7 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
|
||||
zwvalue = stream.str();
|
||||
}
|
||||
|
||||
ReturnValueNoError = zwvalue;
|
||||
ReturnValue = zwvalue;
|
||||
if (ErrorMessage && (error.length() > 0))
|
||||
ReturnValue = ReturnValue + "\t" + error;
|
||||
@@ -319,10 +321,12 @@ string ClassFlowPostProcessing::getReadout()
|
||||
return ReturnValue;
|
||||
}
|
||||
|
||||
string ClassFlowPostProcessing::getReadoutParam(bool _rawValue)
|
||||
string ClassFlowPostProcessing::getReadoutParam(bool _rawValue, bool _noerror)
|
||||
{
|
||||
if (_rawValue)
|
||||
return ReturnRawValue;
|
||||
if (_noerror)
|
||||
return ReturnValueNoError;
|
||||
return ReturnValue;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ protected:
|
||||
float Value;
|
||||
string ReturnValue;
|
||||
string ReturnRawValue;
|
||||
string ReturnValueNoError;
|
||||
|
||||
bool LoadPreValue(void);
|
||||
|
||||
@@ -34,7 +35,7 @@ public:
|
||||
bool ReadParameter(FILE* pfile, string& aktparamgraph);
|
||||
bool doFlow(string time);
|
||||
string getReadout();
|
||||
string getReadoutParam(bool _rawValue);
|
||||
string getReadoutParam(bool _rawValue, bool _noerror);
|
||||
void SavePreValue(float value, string time = "");
|
||||
string GetPreValue();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user