stm32duino / LSM6DSV16X

Arduino library to support the LSM6DSV16X 3D accelerometer and 3D gyroscope
BSD 3-Clause "New" or "Revised" License
5 stars 6 forks source link

Add features from slimevr modified lib #16

Closed wigwagwent closed 6 months ago

wigwagwent commented 9 months ago

Summary When adding the LSM6DSV family to the slimevr firmware we needed a few features that are not present in this library.

This PR fixes/implements the following bugs/features

Validation A slightly modified version using most of these features works in the slimevr firmware but other than that I have not tested every added feature thoroughly.

SlimeVR Firmware

cparata commented 9 months ago

Hello @wigwagwent , thanks for the contribution. As you can see, your PR did not pass AStyle, spelling and compilation checks. For AStyle you can give a look at the guide here. For spelling you can give a look at the suggestion here. There is also an issue in the compilation check here. I suggest to fix all these issues before, then I will give a look at the PR. Thanks again and Best Regards, Carlo

cparata commented 8 months ago

Hello @wigwagwent , thanks for the new PR. Regarding the reg files, in STM32duino we decided to patch these files replacing the "stmdev_ctx_t" generic struct with a dedicated struct called "lsm6dsv16x_ctx_t" to avoid compilation errors when several MEMS components are used in the same example. So I prefer to keep the same approach also for this component to avoid misalignments. The rest of APIs seems fine to me. I will try to make a test with this new version in the next days to see if all the examples work properly. Best Regards, Carlo

wigwagwent commented 7 months ago

I did a search and replace to update all the stmdev_ctx_t to lsm6dsv16x_ctx_t

cparata commented 6 months ago

Hello @wigwagwent , thanks a lot for your contribution! I have integrated in the main branch your PR with small changes. I will release a new version of the library v2.0.0 with all these changes. Best Regards, Carlo