NeoBirth / accelerometer.rs

Generic Rust accelerometer support, including traits and types for taking readings from 2 or 3-axis accelerometers
Apache License 2.0
26 stars 10 forks source link

Stub for time series of accelerations #64

Open mehmetalianil opened 2 years ago

mehmetalianil commented 2 years ago

I am implementing IIS3DWB for this crate as an exercise to get used to embedded Rust. I am wondering whether RawAccelerometer can work with Vectors (time series) of Vectors (timestamp, acc_x, y, z)

IIS3DWB has an interrupt and wake up mechanism and a FIFO of 3kB. I was wondering whether there can be a way to utilize this.

tarcieri commented 2 years ago

The backing vector library micromath only supports 2D and 3D vectors at the moment

mehmetalianil commented 2 years ago

I see, how do we position the method Accelerometer::sample_rate(), then? The only use cases that I can think of are associated with series of measurements.