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
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 asensor_value
directly instead of adouble