Open lnigra opened 10 years ago
I fixed this in the 3StateKalman.py code in the LouThreeState branch. The TwoSensor branch code needs to be fixed in a similar manner. Follow that example with the following changes. There's no need to convert it to matrices, just fix the Kalman procedure and start using it on the second sample instead of the first:
The Kalman(...) procedure has the "predict" equations following the "update" ("correct") equations. It should be the other way around. Kalman filter is a "predictor-corrector", in that order.