I am using a linear Kalman filter for estimating the position using multiple IMUs. My model is adding the accelerometer readings' double integration onto the previous positions. The state vector is the positions of the IMUs and the input vector is the IMU accelerometer measurements.
Also, I have some constraints in the positions and I am using those constraints in the correction step of the Kalman filter.
So in the tuning step, I set the R matrix zero so that the Kalman filter relies on the measurement only (so not use the aprior estimate at all). It works fine unless there is no input. However, if I introduce some acceleration to the system, even if I set the R=0 and Q very high, the Kalman filter still takes the contribution from the aprior estimate. The question comes at that point: what is the functionality to set R=0 if it does not disregard the model error?
Another approach to satisfy this behaviour comes from the Kalman gain calculation. As R goes to zero, the Kalman gain should approach to the inverse of the observation matrix (H or C) and so that the a posterior estimate approaches to the measurement. Since the H matrix is not a square and full rank matrix in my case, I cannot intuitively check where exactly the contribution of the aprior estimates take place even though I set the R=0. If anyone has any comments, I would really appreciate.