60 criticalError(
"CAN read and write are required to use CAN wideband.");
72 constexpr bool isUnitTest =
true;
74 constexpr bool isUnitTest =
false;
void registerCanSensor(CanSensorBase &sensor)
float getAfr(SensorType type)
StoredValueSensor smoothedLambda2Sensor(SensorType::SmoothedLambda2, MS2NT(500))
StoredValueSensor smoothedLambda1Sensor(SensorType::SmoothedLambda1, MS2NT(500))
static constexpr engine_configuration_s * engineConfiguration
A sensor to provide a bridge from old getX()-style functions to the new sensor registry.
const wideband_state_s * getLiveData(size_t idx)
static FunctionPointerSensor lambdaSensor2(SensorType::Lambda2, []() { return afrWrapper.getLambda2();})
static FunctionPointerSensor lambdaSensor(SensorType::Lambda1, []() { return afrWrapper.getLambda();})
static AemXSeriesWideband aem2(1, SensorType::Lambda2)
static AemXSeriesWideband aem1(0, SensorType::Lambda1)
static GetAfrWrapper afrWrapper