More filter testing.

This commit is contained in:
jgoppert
2015-11-04 20:58:56 -05:00
parent 76cf91c5fd
commit eddc55827a
2 changed files with 16 additions and 10 deletions
+6
View File
@@ -22,6 +22,12 @@ int main()
kalman_correct<float, 6, 5>(P, C, R, r, dx, beta);
dx.print();
printf("beta: %g\n", beta);
float data_check[] = {0.5,1,1.5,2,2.5,0};
Vector<float, n_x> dx_check(data_check);
assert(dx == dx_check);
return 0;
}