Commit Graph

10 Commits

Author SHA1 Message Date
Eiren Rain
72fa060506 Spi support (2) (#425)
* 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

* 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

---------

Co-authored-by: Butterscotch! <bscotchvanilla@gmail.com>
Co-authored-by: gorbit99 <gorbitgames@gmail.com>
2025-04-25 23:36:49 +03:00
Ryan Butler
6886e11054 Fix esp32c3 build (#163) 2022-07-04 02:28:12 +03:00
Yury
a80534e144 Use inverse square root function with better precision 2022-02-03 12:49:25 +03:00
LETBBI
57e3c5efa8 Using Mahony filter with DMP
Using Accelerometer, Gyroscope with DMP and magnetomter.
Be Careful! This code is not stable.
2022-01-19 21:29:00 +09:00
Yury
e6938ecac2 Use inverse square root to speed up calculations 2021-12-17 11:28:54 +03:00
Eiren Rain
491056749f Added new feature to send less network updates when there is less movement or no movement detected 2021-10-20 04:13:37 +03:00
Eiren Rain
2704dac072 Significant protocol refactoring
Replace doubles with floats in math
Added ability to send multiple reports from BNO with multiple sensors
Send magnetometer data from BNO as correction data, added switches to use magnetometer for BNO
2021-08-08 11:56:53 +03:00
Eiren Rain
553446e897 Support compilation for ESP32 2021-06-23 14:29:37 +03:00
Eiren Rain
d7914aeac6 Added license to files from Godot Engine 2021-03-07 06:28:06 +03:00
Eiren Rain
7e4f21e603 Major refactoring with classes for each sensor 2021-03-05 05:52:43 +03:00