Tests for magnetic compensation (ellipsoid) - #487
Open
daviddgonzalez wants to merge 1 commit into
Open
Conversation
Tested in ROS environment and found two bugs: - ellipsoid.py doesn't verify if it's coplanar or not and the z component is determined through floating point rounding errors instead of being consistent, so the two BLAS don't output the same. - fit_ellipsoid would accept fewer than 9 points and return a bad calibration. Added fixes for both
daviddgonzalez
force-pushed
the
magnetic-ellipsoid-tests
branch
from
June 9, 2026 20:10
453b7b4 to
b417cda
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds test coverage for the magnetic compensation driver, including a new
ellipsoidmodule and accompanying unit tests. Rebased on top of the latestmain.Changes
ellipsoid.pyfor ellipsoid-fit magnetic compensationtest_ellipsoid.pycovering the ellipsoid fitting/compensation logictest_param_validation.pyfor parameter validationtest_compensator.cppfor the C++ compensatortest_basic_shift.pycoveragescripts/generate_config.pyand relatedCMakeLists.txt/package.xmlNotes
This replaces the previous
magnetic-compensation-testsbranch/PR with anupdated branch that includes the latest changes from
main.