Added support for LSM6DSOX IMU from Adafruit. #18
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.
I added some shortcuts to the Failsafe() function when using SBUS. I tested this with a Radiomaster RP3-H ELRS receiver in SBUS mode and tested switching back and forth with an LSM6DSOX and MPU6050 IMU. Both work appropriately. I had attempted to implement the LSM6DSOX using I2C, but I couldn't get the loop rate fast enough. Adafruit must have some blocking in their library code to slow it down. The SPI implementation seems solid and quick.
I created this by cloning the 1.3 version and made my changes as version 1.4. If you'd rather roll this into the 1.3, I can do that as well.
Thanks!
--Brian