PER Firmware
Loading...
Searching...
No Matches
oil_temps_table.h
Go to the documentation of this file.
1
8
#ifndef OIL_TEMPS_H
9
#define OIL_TEMPS_H
10
11
#include "
common/lerp_lut/lerp_lut.h
"
12
13
extern
const
lerp_lut_t
oil_temps_lut
;
14
15
[[gnu::always_inline]]
16
static
inline
float
oil_temps_R_to_T
(
float
resistance) {
17
return
lut_lookup
(&
oil_temps_lut
, resistance);
18
}
19
20
#endif
// OIL_TEMPS_H
lut_lookup
float lut_lookup(const lerp_lut_t *lut, float key)
Lookup a value in a linear interpolation lookup table (LUT).
Definition
lerp_lut.c:20
lerp_lut.h
Linear interpolation lookup table (LUT).
oil_temps_R_to_T
static float oil_temps_R_to_T(float resistance)
Definition
oil_temps_table.h:16
oil_temps_lut
const lerp_lut_t oil_temps_lut
lerp_lut_t
Definition
lerp_lut.h:18
firmware
source
driveline
oil_temps
oil_temps_table.h
Generated by
1.12.0