OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C++ API referencev12.0

optris::sdk::pif::PifAnalogCalibration

Device-wide SDK calibration of the analog path, as the camera's calibration file declares it, injected downward from the layer that owns calibration data.

Distinct from PifChannelConfig's per-channel gain/offset, which is the user's conversion in the channel's own unit. Nothing below the HAL line reads a calibration file to obtain these.

These are slopes over the converters' codes, not over volts or milliamperes. The relation on both directions is trimmed = gain * untrimmed + offset with every value a count of the converter's steps -- 10 mV on an input, 10 mV or 20 uA on an output depending on the range. An offset of 2 is two steps, not two volts. Stating the domain is the point: the controller used to apply these numbers to a value in the channel's unit, on top of the calibration the device applies in code space, so every driven value on an SDK-calibrated interface carried the file's offset a second time and a thousandfold too large.

The controller no longer applies them. They are reported here, and handed to the port in hal::PifSetup, for a port that has no calibration of its own. On a camera the interface's own per-channel factory trim is what is applied -- it is per channel and lives in the PIF's EEPROM, which only the device can read, so a device-wide pair cannot express it; on a PI 1, which has no PIF EEPROM, the device is given exactly these file values and applies them itself, which is what v11 does.

PifHardwareInfo::analog_input_trims and analog_output_trims report the trim a channel actually has, and name which of those two cases they are describing.

Public attributes

input_gain

float input_gain = 1.0F

input_offset

float input_offset = 0.0F

output_gain

float output_gain = 1.0F

output_offset

float output_offset = 0.0F