-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
WIP: accel cal index bug #10522
WIP: accel cal index bug #10522
Conversation
Thanks! @bkueng Could you check? |
The way I see it's mostly a matter of how you define the matrix: Bob uses row-major in his explanations. The implementation could be using column-major since the off-diagonals are not used (and (A^T)^-1 = (A^-1)^T). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
Thanks for your earlier contribution. Unfortunately as the project has overall evolved quite a bit, this change doesn't apply any more. Closing stale pull requests like this one is part of us working aggressively to bring down the PR review time so that we will be able to merge or reject PRs in the future in a much more timely fashion. |
The accel_T matrix that the program generates is incorrect. It actually generates the transpose of accel_T. Existing calibrations are working because the calibration process only retains the diagonal of the matrix; and regenerate the rotation matrix in another calibration step. This extra step should be unnecessary if the bug is fixed.
In the front documentation block comment, the calibration algorithm is described. I have extended this description to more clearly show the error.
Note that for the above matrix, test number is the column index and the sensor x/y/z specifier is the row index. This is the opposite from what is coded in the .cpp program, which states...
Continuing the math explanation...
Notes:
Regards,
Bob