Skip to content

Commit b725d24

Browse files
committed
Add Error to Logfile if output-dimenstion of model inconsistent.
1 parent 568e883 commit b725d24

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

code/components/jomjol_flowcontroll/ClassFlowCNNGeneral.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ string ClassFlowCNNGeneral::getReadout(int _analog = 0, bool _extendedResolution
113113
{
114114
prev = -1;
115115
result = "N" + result;
116+
if (debugdetailgeneral) LogFile.WriteToFile("ClassFlowCNNGeneral::getReadout(result_float<0 /'N') result_float=" + std::to_string(GENERAL[_analog]->ROI[i]->result_float));
117+
116118
}
117119
}
118120
return result;
@@ -205,7 +207,8 @@ int ClassFlowCNNGeneral::ZeigerEvalHybrid(float zahl, float zahl_vorgaenger, int
205207
return (ergebnis_vorkomma - 1 + 10) % 10;
206208
}
207209
}
208-
210+
if (debugdetailgeneral) LogFile.WriteToFile("ClassFlowCNNGeneral::ZeigerEvalHybrid(return -1) zahl=" + std::to_string(zahl)
211+
+ ", zahl_vorgaenger=" + std::to_string(zahl_vorgaenger) + ", eval_vorgaenger=" + std::to_string(eval_vorgaenger));
209212
return -1;
210213

211214
/*
@@ -575,6 +578,7 @@ bool ClassFlowCNNGeneral::getNetworkParameter()
575578
}
576579
break;
577580
default:
581+
LogFile.WriteToFile("ERROR ERROR ERROR - tflite passt nicht zur Firmware - ERROR ERROR ERROR (outout_dimension=" + std::to_string(_anzoutputdimensions) + ")");
578582
printf("ERROR ERROR ERROR - tflite passt nicht zur Firmware - ERROR ERROR ERROR\n");
579583
}
580584
}

0 commit comments

Comments
 (0)