Pyrrha-Platform / Pyrrha-Z

Next-generation firmware built on the Zephyr RTOS.
Apache License 2.0
2 stars 0 forks source link

mics4514: remove newlibc requirement #13

Open bpbradley opened 2 years ago

bpbradley commented 2 years ago

This is a low priority, but it would be nice to find some fixed point implementation of gas concentration calculation. Currently everything else in the sensor subsystem and the application itself is using fixed point, but the concentration calculation which does curve interpolation does not.

I believe calculate_ppm is the only function which would need to be ported. Ideally it would return a sensor_value directly instead of a double