Skip to content

Incorrect variable used when calculating the avg wheel velocity? #4

@markwomack

Description

@markwomack

average += _left_vel_window[i];

The above referenced line uses the variable 'i' for the value from the velocity array, but shouldn't it be 'j' instead? Using i just adds the same value from the same index for the window size. It doesn't actually use all the values in the array as I would expect. Same problem in both of the methods.

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