-
-
Notifications
You must be signed in to change notification settings - Fork 331
Mag support (Attempt 2) #458
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
Merged
Merged
Conversation
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
Eirenliel
approved these changes
Jun 12, 2025
Eirenliel
added a commit
that referenced
this pull request
Jun 12, 2025
* Make SPI work Move sensor building logic to a separate class and file Don't use templates for RegisterInterface/I2CImpl/SPIImpl This started getting ridiculous, now we can actually maintain it. Make BNO085 work again Add BNO to automatic detection, remove a bunch of others Not all IMU types are enabled right now due to code size optimization, but it could be expanded in the future with optimization of Softfusion. Pick IMU type automatically by asking it * ESP32 spelling fix (#396) Fix: ES32 -> ESP32 * (Probably) multiply acceleration by tracker rotation offset * Remove stome stuff from softfusionsensor * Missed stuff * Undo defines changes * Undo debug.h changes * Uses32BitSensorData is unneccessary now * Remove some unnecessary variables * Cleanup some logging text * Formatting * Split SensorBuilder into a header-source file pair * Fix copyright * Fix some issues with glove after all the changes Add definitions for SlimeVR v1.2 Fix typo and add comments to quaternion sandwich function * Add NO_WIRE definition for SPI devices * Fix formatting * Minor fix * If ICM-45686 not found, ask again nicely * Fix MCP interface not building * Remove uneccessary "default" ctor from SPIImpl * Remove buildSensorReal * Invert if statement in sensorbuilder+ * Fix formatting * If ICM-45686 not found, ask again nicely * Fix MCP interface not building * Fix formatting * Various cleanup * Formattign * Fix detected logic * Remove unnecessary Self using * For some reason this fixes memory corruption issues * Formatting * This actually works this time * Small cleanup * Remove some unused includes * Formatting * Mag support (Attempt 2) (#458) * WhoAmI check working * In theory this should be setting up the mag * Not sure how that happened * Add magnetometer status to GET TEST and GET INFO * Formatting * Formatting 2 --------- Co-authored-by: Eiren Rain <[email protected]> Co-authored-by: Butterscotch! <[email protected]>
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.
This PR aims to lay the foundation for magnetometer support for sfusion based IMUs (ICM45, LSM6 family, BMI270, etc etc).
Currently this only means creating the base framework for mag support and adding mag detection for the ICM-45686 IMU. In the future this should be expanded to other IMUs, mag sample support should be added to each of them, and those samples should be fed into VQF.
It also adds magnetometer status to GET TEST and GET INFO in accordance to #457