(De-)activate automatic self calibration (ASC). When activated for the first time a period of minimum 7 days is needed so that the algorithm can find its initial parameter set for ASC. The successfully calculated parameters are stored in non-volatile memory of the SCD30 having the effect that after a restart the previously found parameters for ASC are still present. The ASC parameters are continually updated as the sensor runs. Finding a new parameter set by ASC will always overwrite the settings from set-forced-recalibration-factor and vice-versa.
set-auto-self-calibration
@/set-auto-self-calibration
(De-)activate automatic self calibration (ASC). When activated for the first time a period of minimum 7 days is needed so that the algorithm can find its initial parameter set for ASC. The successfully calculated parameters are stored in non-volatile memory of the SCD30 having the effect that after a restart the previously found parameters for ASC are still present. The ASC parameters are continually updated as the sensor runs. Finding a new parameter set by ASC will always overwrite the settings from set-forced-recalibration-factor and vice-versa.
DEV@/scd30-device
An SCD30 device.
ASCboolean
If TRUE activate automatic self-calibration. If FALSE deactivate automatic self-calibration.
UPDpulse
Update. Trigger set auto self-calibration.
DONEpulse
Pulses on completion.
To use the node in your project you should have the wayland/scd30-co2-rh-temp library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.
C++ implementation
struct State {
};
{{ GENERATED_CODE }}
void evaluate(Context ctx) {
// The node responds only if there is an input pulse
if (!isInputDirty<input_UPD>(ctx))
return;
// Get a pointer to the `SCD30` class instance
auto airSensor = getValue<input_DEV>(ctx);
airSensor->setAutoSelfCalibration(getValue<input_ASC>(ctx));
emitValue<output_DONE>(ctx,1);
}