Greetings. First of all, thank you very much for your contribution, it's really helpful.
Secondly, I tried the Kalman Filter example code that you provided, and I noticed that when either the pitch angle is greater than, approximately, 100° or the roll angle is greater than 80°, the resulting Kalman angles start to decrease instead of continuing to increase. So you get something like "98-99-100-99-98" for the pitch angle, and something similar for the roll angle.
Does this have to do with the Kalman filter having some range of allowed angle values? Or am I doing something wrong?
For the record, I tried something similar, but instead of using a Kalman filter, I used a simple Complementary filter, and in that case, the angles continued to increase.
the solution may be found using better version of kalman filter like unscented or extended kalman filter with quaternion,sensor fusion using a compass. lots of things
Greetings. First of all, thank you very much for your contribution, it's really helpful.
Secondly, I tried the Kalman Filter example code that you provided, and I noticed that when either the pitch angle is greater than, approximately, 100° or the roll angle is greater than 80°, the resulting Kalman angles start to decrease instead of continuing to increase. So you get something like "98-99-100-99-98" for the pitch angle, and something similar for the roll angle.
Does this have to do with the Kalman filter having some range of allowed angle values? Or am I doing something wrong?
For the record, I tried something similar, but instead of using a Kalman filter, I used a simple Complementary filter, and in that case, the angles continued to increase.