The x "array" of variables which represent some intermedate values inside the filter are only initialised once when the program runs due to C/C++ rules for static variables. The code can be seen on
|
static int16_t x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10; |
Should those be zero'd everytime at the start of say function? At the moment a second invocation of say is very likely to generate slightly different output for the same input data, albeit only briefly at the start.
Also, x10 is never used in the program.
I've not executed this code, I've just inspected it...
The x "array" of variables which represent some intermedate values inside the filter are only initialised once when the program runs due to C/C++ rules for
staticvariables. The code can be seen onTalkie/Talkie/talkie.cpp
Line 152 in 7f57628
Should those be zero'd everytime at the start of
sayfunction? At the moment a second invocation ofsayis very likely to generate slightly different output for the same input data, albeit only briefly at the start.Also,
x10is never used in the program.I've not executed this code, I've just inspected it...