Function mlx9064x::calculations::v_ptat_art[][src]

pub fn v_ptat_art<'a, Clb: CalibrationData<'a>>(
    calibration: &'a Clb,
    t_a_ptat: i16,
    t_a_v_be: i16
) -> f32
Expand description

Calculate $V_{PTAT_{art}}$

This is part of the process in calculating the current ambient temperature ($T_{a}$) and is calculated once per frame. It is documented in sections 11.1.2 and 11.2.2.3 in both datasheets. It is used for constructing CommonIrData.

$$ V_{PTAT_{art}} = \frac{T_{a_{PTAT}}}{T_{a_{PTAT}} * \text{Alpha}_{PTAT} + T_{a_{V_{BE}}}} * 2^{18} $$

$Alpha_{PTAT}$ is retrieved from the calibration argument, while $T_{a_{PTAT}}$ (t_a_ptat) and $T_{a_{V_{BE}}}$ (t_a_v_be) are read from the camera’s RAM.