mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 20:46:52 +03:00
Rolling 20210921
This commit is contained in:
@@ -47,10 +47,13 @@ In other cases you can contact the developer via email: <img src="https://raw.gi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Rolling (2021-09-21)
|
##### Rolling (2021-09-22)
|
||||||
|
|
||||||
* bug fix
|
* bug fix
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Rolling (2021-09-20)
|
Rolling (2021-09-20)
|
||||||
|
|
||||||
* Moved setting `ExtendedResolution` to individual number settings
|
* Moved setting `ExtendedResolution` to individual number settings
|
||||||
|
|||||||
@@ -311,21 +311,21 @@ bool ClassFlowControll::doFlow(string time)
|
|||||||
|
|
||||||
string ClassFlowControll::getReadoutAll(int _type)
|
string ClassFlowControll::getReadoutAll(int _type)
|
||||||
{
|
{
|
||||||
std::vector<NumberPost*> numbers = flowpostprocessing->GetNumbers();
|
std::vector<NumberPost*> *numbers = flowpostprocessing->GetNumbers();
|
||||||
std::string out = "";
|
std::string out = "";
|
||||||
|
|
||||||
for (int i = 0; i < numbers.size(); ++i)
|
for (int i = 0; i < (*numbers).size(); ++i)
|
||||||
{
|
{
|
||||||
out = out + numbers[i]->name + "\t";
|
out = out + (*numbers)[i]->name + "\t";
|
||||||
switch (_type) {
|
switch (_type) {
|
||||||
case READOUT_TYPE_VALUE:
|
case READOUT_TYPE_VALUE:
|
||||||
out = out + numbers[i]->ReturnValueNoError;
|
out = out + (*numbers)[i]->ReturnValueNoError;
|
||||||
break;
|
break;
|
||||||
case READOUT_TYPE_PREVALUE:
|
case READOUT_TYPE_PREVALUE:
|
||||||
if (flowpostprocessing->PreValueUse)
|
if (flowpostprocessing->PreValueUse)
|
||||||
{
|
{
|
||||||
if (numbers[i]->PreValueOkay)
|
if ((*numbers)[i]->PreValueOkay)
|
||||||
out = out + numbers[i]->ReturnPreValue;
|
out = out + (*numbers)[i]->ReturnPreValue;
|
||||||
else
|
else
|
||||||
out = out + "PreValue too old";
|
out = out + "PreValue too old";
|
||||||
}
|
}
|
||||||
@@ -333,13 +333,13 @@ string ClassFlowControll::getReadoutAll(int _type)
|
|||||||
out = out + "PreValue deactivated";
|
out = out + "PreValue deactivated";
|
||||||
break;
|
break;
|
||||||
case READOUT_TYPE_RAWVALUE:
|
case READOUT_TYPE_RAWVALUE:
|
||||||
out = out + numbers[i]->ReturnRawValue;
|
out = out + (*numbers)[i]->ReturnRawValue;
|
||||||
break;
|
break;
|
||||||
case READOUT_TYPE_ERROR:
|
case READOUT_TYPE_ERROR:
|
||||||
out = out + numbers[i]->ErrorMessageText;
|
out = out + (*numbers)[i]->ErrorMessageText;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i < numbers.size()-1)
|
if (i < (*numbers).size()-1)
|
||||||
out = out + "\r\n";
|
out = out + "\r\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -154,16 +154,16 @@ bool ClassFlowMQTT::doFlow(string zwtime)
|
|||||||
|
|
||||||
if (flowpostprocessing)
|
if (flowpostprocessing)
|
||||||
{
|
{
|
||||||
std::vector<NumberPost*> NUMBERS = flowpostprocessing->GetNumbers();
|
std::vector<NumberPost*>* NUMBERS = flowpostprocessing->GetNumbers();
|
||||||
|
|
||||||
for (int i = 0; i < NUMBERS.size(); ++i)
|
for (int i = 0; i < (*NUMBERS).size(); ++i)
|
||||||
{
|
{
|
||||||
result = NUMBERS[i]->ReturnValueNoError;
|
result = (*NUMBERS)[i]->ReturnValueNoError;
|
||||||
resulterror = NUMBERS[i]->ErrorMessageText;
|
resulterror = (*NUMBERS)[i]->ErrorMessageText;
|
||||||
resultrate = std::to_string(NUMBERS[i]->FlowRateAct);
|
resultrate = std::to_string((*NUMBERS)[i]->FlowRateAct);
|
||||||
resulttimestamp = NUMBERS[i]->timeStamp;
|
resulttimestamp = (*NUMBERS)[i]->timeStamp;
|
||||||
|
|
||||||
namenumber = NUMBERS[i]->name;
|
namenumber = (*NUMBERS)[i]->name;
|
||||||
if (namenumber == "default")
|
if (namenumber == "default")
|
||||||
namenumber = maintopic + "/";
|
namenumber = maintopic + "/";
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -293,15 +293,15 @@ void ClassFlowPostProcessing::handleDecimalSeparator(string _decsep, string _val
|
|||||||
{
|
{
|
||||||
int _zwdc = 0;
|
int _zwdc = 0;
|
||||||
|
|
||||||
try
|
// try
|
||||||
{
|
{
|
||||||
_zwdc = stoi(_value);
|
_zwdc = stoi(_value);
|
||||||
}
|
}
|
||||||
catch(const std::exception& e)
|
/* catch(const std::exception& e)
|
||||||
{
|
{
|
||||||
printf("ERROR - Decimalshift is not a number: %s\n", _value.c_str());
|
printf("ERROR - Decimalshift is not a number: %s\n", _value.c_str());
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
if (_digit == "default") // erstmal auf default setzen (falls sonst nichts gesetzt)
|
if (_digit == "default") // erstmal auf default setzen (falls sonst nichts gesetzt)
|
||||||
{
|
{
|
||||||
NUMBERS[j]->DecimalShift = _zwdc;
|
NUMBERS[j]->DecimalShift = _zwdc;
|
||||||
@@ -332,15 +332,15 @@ void ClassFlowPostProcessing::handleMaxRateValue(string _decsep, string _value)
|
|||||||
{
|
{
|
||||||
float _zwdc = 1;
|
float _zwdc = 1;
|
||||||
|
|
||||||
try
|
// try
|
||||||
{
|
{
|
||||||
_zwdc = stof(_value);
|
_zwdc = stof(_value);
|
||||||
}
|
}
|
||||||
catch(const std::exception& e)
|
/* catch(const std::exception& e)
|
||||||
{
|
{
|
||||||
printf("ERROR - MaxRateValue is not a number: %s\n", _value.c_str());
|
printf("ERROR - MaxRateValue is not a number: %s\n", _value.c_str());
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if (_digit == "default") // erstmal auf default setzen (falls sonst nichts gesetzt)
|
if (_digit == "default") // erstmal auf default setzen (falls sonst nichts gesetzt)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ public:
|
|||||||
|
|
||||||
void UpdateNachkommaDecimalShift();
|
void UpdateNachkommaDecimalShift();
|
||||||
|
|
||||||
std::vector<NumberPost*> GetNumbers(){return NUMBERS;};
|
std::vector<NumberPost*>* GetNumbers(){return &NUMBERS;};
|
||||||
|
|
||||||
string name(){return "ClassFlowPostProcessing";};
|
string name(){return "ClassFlowPostProcessing";};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const char* GIT_REV="1e6eddc";
|
const char* GIT_REV="c033db9";
|
||||||
const char* GIT_TAG="";
|
const char* GIT_TAG="";
|
||||||
const char* GIT_BRANCH="rolling";
|
const char* GIT_BRANCH="rolling";
|
||||||
const char* BUILD_TIME="2021-09-20 21:11";
|
const char* BUILD_TIME="2021-09-21 18:28";
|
||||||
1300
code/sdkconfig.esp32cam
Normal file
1300
code/sdkconfig.esp32cam
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
const char* GIT_REV="1e6eddc";
|
const char* GIT_REV="c033db9";
|
||||||
const char* GIT_TAG="";
|
const char* GIT_TAG="";
|
||||||
const char* GIT_BRANCH="rolling";
|
const char* GIT_BRANCH="rolling";
|
||||||
const char* BUILD_TIME="2021-09-20 21:11";
|
const char* BUILD_TIME="2021-09-21 18:27";
|
||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user