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