rusEFI
The most advanced open source ECU
|
#include <thermistor_func.h>
Public Member Functions | |
SensorResult | convert (float ohms) const override |
void | configure (thermistor_conf_s &cfg) |
void | showInfo (float testRawValue) const override |
![]() | |
SensorConverter (const SensorConverter &)=delete | |
SensorConverter ()=default | |
Data Fields | |
float | m_a = 0 |
float | m_b = 0 |
float | m_c = 0 |
A function to convert resistance to thermistor temperature (NTC). Uses the Steinhart-Hart equation to avoid having to compute many logarithms at runtime.
Definition at line 15 of file thermistor_func.h.
void ThermistorFunc::configure | ( | thermistor_conf_s & | cfg | ) |
Definition at line 42 of file thermistor_func.cpp.
|
overridevirtual |
Implements SensorConverter.
Definition at line 11 of file thermistor_func.cpp.
Referenced by configure(), and showInfo().
|
overridevirtual |
Reimplemented from SensorConverter.
Definition at line 98 of file sensor_info_printing.cpp.
float ThermistorFunc::m_a = 0 |
Definition at line 24 of file thermistor_func.h.
Referenced by configure(), and convert().
float ThermistorFunc::m_b = 0 |
Definition at line 25 of file thermistor_func.h.
Referenced by configure(), and convert().
float ThermistorFunc::m_c = 0 |
Definition at line 26 of file thermistor_func.h.
Referenced by configure(), and convert().