Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Matrix.hpp #4966

Merged
merged 1 commit into from
Jul 3, 2016
Merged

Update Matrix.hpp #4966

merged 1 commit into from
Jul 3, 2016

Conversation

mkschreder
Copy link
Contributor

This is horribly wrong for anything that is not a square matrix. Matrix is first cast into a matrix of size NxM (which is supposed to be the size of the result - NOT the starting point) so the transpose result becomes garbage. Instead make "Me" an MxN matrix as the original. Took me a whole evening to figure out this problem. Now my Kalman filter finally returns good results.

This was horribly wrong. Matrix is first cast into a matrix of size NxM (which is supposed to be the size of the result - NOT the starting point) so the transpose result becomes garbage. Instead make "Me" an MxN matrix as the original. Took me a whole evening to figure out this problem. Now my Kalman filter finally returns good results.
@kd0aij
Copy link
Contributor

kd0aij commented Jul 2, 2016

ouch, looks like a lack of unit testing

@LorenzMeier
Copy link
Member

Indeed, thanks!

@LorenzMeier LorenzMeier merged commit 97d9fd3 into PX4:master Jul 3, 2016
LorenzMeier pushed a commit that referenced this pull request Jul 3, 2016
This was horribly wrong. Matrix is first cast into a matrix of size NxM (which is supposed to be the size of the result - NOT the starting point) so the transpose result becomes garbage. Instead make "Me" an MxN matrix as the original. Took me a whole evening to figure out this problem. Now my Kalman filter finally returns good results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants