rusEFI
The most advanced open source ECU
|
#include <resistance_func.h>
Public Member Functions | |
void | configure (float supplyVoltage, float pullupResistor, bool isPulldown) |
SensorResult | convert (float inputValue) const override |
void | showInfo (float testInputValue) const override |
![]() | |
SensorConverter (const SensorConverter &)=delete | |
SensorConverter ()=default | |
Private Attributes | |
float | m_supplyVoltage = 5.0f |
float | m_pullupResistor = 1000.0f |
bool | m_isPulldown = false |
A function to convert input voltage to resistance in a voltage divider. Configured with the value of the pullup resistor, and the voltage to which it's connected.
Definition at line 13 of file resistance_func.h.
Definition at line 7 of file resistance_func.cpp.
Referenced by initRangeSensors().
|
overridevirtual |
Implements SensorConverter.
Definition at line 13 of file resistance_func.cpp.
Referenced by showInfo().
|
overridevirtual |
Reimplemented from SensorConverter.
Definition at line 93 of file sensor_info_printing.cpp.
|
private |
Definition at line 24 of file resistance_func.h.
Referenced by configure(), and convert().
|
private |
Definition at line 23 of file resistance_func.h.
Referenced by configure(), convert(), and showInfo().
|
private |
Definition at line 22 of file resistance_func.h.
Referenced by configure(), convert(), and showInfo().