Currently we are using default calibration values for R0 on mics4514. In order to support field calibrations, we will need a few things.
A calibration process where the sensor is exposed to a known gas concentration and sensor data is measured over a period of time (possibly many minutes) until it has stabilized. This stable value would be the new R0.
Implement a means of storing R0 into nvm (the settings subsystem with NVS backend is suitable for this).
Implement a means of entering "calibration mode" to start this procedure. The shell subsystem is a good candidate for this.
Currently we are using default calibration values for R0 on mics4514. In order to support field calibrations, we will need a few things.