Skip to main content

parse_calibrations

Function parse_calibrations 

Source
pub(crate) fn parse_calibrations(
    raw: &SensorConfig,
) -> HashMap<u8, CalibrationSpec>
Expand description

Parses dashboard calibration map keys into numeric LabJack channels.

Invalid channel keys are ignored after logging because one malformed calibration entry should not prevent unrelated channels from being archived.

§Arguments

  • raw - Sensor settings whose calibrations map is read.

§Returns

Calibrations keyed by channel number. Empty when the section has no calibrations map.