Function mlx9064x::calculations::ambient_temperature [−][src]
pub fn ambient_temperature<'a, Clb: CalibrationData<'a>>(
calibration: &'a Clb,
v_ptat_art: f32,
delta_v: f32
) -> f32
Expand description
Calculate the ambient temperature ($T_a$)
The ambient temperature is used when calculating temperature of each pixel, and is also a
useful value by itself. It is calculated once per frame, and is used when constructing
CommonIrData
. It is documented in sections 11.1.2 and 11.2.2.3 in both datasheets.
$$ T_a = \frac{\frac{V_{PTAT_{art}}}{1 + K_{V_{PTAT}} * \Delta V} - V_{PTAT_{25}}}{K_{T_{PTAT}}} + 25 $$
$K_{V_{PTAT}}$, $K_{T_{PTAT}}$, and
$V_{PTAT_{25}}$, are taken from calibration
, while
$V_{PTAT_{art}}$ (v_ptat_art
) and $\Delta V$ (delta_v
) are the results of
v_ptat_art
and delta_v
respectively.