8#include <rusefi/timer.h>
21 return UnexpectedCode::Low;
24 if (frequency > 155) {
25 return UnexpectedCode::High;
28 float flexPct = clampF(0, frequency - 50, 100);
49 void callback(efitick_t nowNt,
bool value);
float filter(float input)
void configureLowpass(float samplingFrequency, float cutoffFrequency, float Q=0.54f)
SensorResult convert(float frequency) const override
FunctionalSensor flexSensor
FlexSensor(efidur_t timeoutPeriod)
int lowFlexCallbackCounter
StoredValueSensor flexFuelTemp
void callback(efitick_t nowNt, bool value)
efitick_t latestCallbackTime
void Register(bool withTempSensor)
Class for sensors that convert from some raw floating point value (ex: voltage, frequency,...
void setFunction(ConverterType &func)
Base class for sensors that compute a value on one thread, and want to make it available to consumers...
expected< float > SensorResult
Enumeration of sensors supported by the ECU.