Skip to content

Commit 6840017

Browse files
authored
Merge pull request #19 from AIRLegend/dev
Change of EAFilter
2 parents b01cb8c + 788b112 commit 6840017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AITracker/src/filters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void EAFilter::filter(float* in_array, float* out_array)
5353
for (int i = 0; i < array_size; i++)
5454
{
5555
out_array[i] = 0.6 * in_array[i] + 0.4 * this->last_value[i];
56-
this->last_value[i] = out_array[i];
56+
this->last_value[i] = in_array[i];
5757
}
5858

5959
}

0 commit comments

Comments
 (0)