Closed TheButlah closed 6 months ago
Once I implement it and test it in my code, I can implement a PR to add functionality for reading FSR
Once I implement it and test it in my code, I can implement a PR to add functionality for reading FSR
Any progress on this?
I guess code from here could be integrated? https://github.com/SlimeVR/SlimeVR-Rust/blob/main/firmware/src/imu/drivers/bmi160/mod.rs https://github.com/SlimeVR/SlimeVR-Rust/blob/main/firmware/src/imu/drivers/bmi160/math.rs
Yes feel free to use the code - I haven't been working on this recently but yes it did seem to be working.
From what I remember, the maintainer didn't want to bump the MSRV and I use plenty of const code in what you linked. So I didn't submit a PR at the time.
As I said, please feel free to add support for that here.
Over in #1 I preferred to remove the const
qualifier because it was just one trivial function.
Bumping the MSRV is fine.
the data returned is in
i16
format. Without a way to access the sensor range, I can't convert this to a float.