Adjusted error handling and formula deviation
This commit is contained in:
@ -99,10 +99,10 @@ int createFormula(RawFormulaData &fd, char *formulaBuffer,
|
||||
// If the deviation is more than 2 degress we mark it as failed.
|
||||
if (dev * 1000 > myAdvancedConfig.getMaxFormulaCreationDeviation()) {
|
||||
char s[120];
|
||||
snprintf(
|
||||
&s[0], sizeof(s),
|
||||
"CALC: Validation failed on angle %f, deviation too large %.8f, formula order %d",
|
||||
fd.a[i], dev, order);
|
||||
snprintf(&s[0], sizeof(s),
|
||||
"CALC: Validation failed on angle %f, deviation too large "
|
||||
"%.8f, formula order %d",
|
||||
fd.a[i], dev, order);
|
||||
ErrorFileLog errLog;
|
||||
errLog.addEntry(&s[0]);
|
||||
valid = false;
|
||||
|
Reference in New Issue
Block a user