haxo-rs icon indicating copy to clipboard operation
haxo-rs copied to clipboard

Provide a way to calibrate pressure sensor

Open jcard0na opened this issue 3 years ago • 0 comments

At the moment, the pressure baseline is captured at launch, and the max pressure hard coded based on a few measurements.

https://github.com/jcard0na/haxo-rs/blob/main/src/pressure.rs#L55

This has the risk of not working well across multiple sensors. We need a way to calibrate the sensor: record baseline, min pressure (draw) and max pressure (blow) for each device.

jcard0na avatar Sep 02 '21 05:09 jcard0na