FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kLdCalLookup_CompensatePowerInput ( kLdCalLookup  lookup,
kSize  calInput,
k64f  intensity,
k64f  temperature,
kSize compensatedInput 
)

Calculates the power set point input value required to produce optical power that's equivalent to specified calibration set point input.

The function accepts the power set point value that's configured at the end of the manufacturing process, which maps to the desired power at calibration temperature. Output of the function is the power set point input required to produce the same desired optical power at any temperature within sensors temperature range. Specified input must be within the calibrated range and inputs outside of that range will result in function returning kERROR_NOT_FOUND

Parameters
lookupLookup object.
calInputDriver power set point input, in device units, configured at shipping (matching desired optical power at calibration temperature).
intensityDesired intensity (normalized).
temperatureDriver temperature to compensate to. Specify k64F_NULL to default to the calibration temperature.
compensatedInputPointer receiving driver input, in device units, matching the optical power of the uncompensated input at the specified temperature.
Returns
Operation status.