CarbonAeronautics / Part-XV-1DKalmanFilter

39 stars 3 forks source link

Problems with pitch angles greater than 100° and roll angles greater than 80° #2

Open FrancoBisciglia opened 4 months ago

FrancoBisciglia commented 4 months ago

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.

saumik02 commented 1 month ago

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