Skip to content

x variables are not initialised per execution of say #38

@kevinjwalters

Description

@kevinjwalters

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions