48 return {0, -6.64, 5, 182.78};
50 return {0.306, 20, 4.897, 105};
53 return {0.204, 20, 4.896, 250};
55 return {0.5, 91.422, 3.0, 0};
56 case MT_DODGE_NEON_2003:
57 return {0.4, 15.34, 4.5, 100};
59 return {0, 0, 5, 200};
61 return {0.631, 40, 4.914, 304};
63 return {0, 8.8, 5, 208};
65 return {0, 10, 5, 105};
66 case MT_TOYOTA_89420_02010:
67 return {3.7 - 2, 33.32, 3.7, 100};
69 return {0, 2.5, 5, 117};
72 return {0.4 , 20 , 4.65, 250};
74 return {0.2, 20, 4.8, 400};
76 return {1.0, 60, 4.5, 270};
static AdcSubscriptionEntry * SubscribeSensor(FunctionalSensorBase &sensor, adc_channel_e channel, float lowpassCutoffHZ, float voltsPerAdcVolt=0.0f)
static void UnsubscribeSensor(FunctionalSensorBase &sensor)
Class for sensors that convert from some raw floating point value (ex: voltage, frequency,...
void setFunction(ConverterType &func)
void setFunction(SensorConverter &func)
static constexpr engine_configuration_s * engineConfiguration
void firmwareError(ObdCode code, const char *fmt,...)
static FunctionalSensor throttleInletPress(SensorType::ThrottleInletPressure, MS2NT(50))
static FallbackSensor mapCombiner(SensorType::Map, SensorType::MapFast, SensorType::MapSlow)
static FunctionalSensor baroSensor(SensorType::BarometricPressure, MS2NT(50))
static MapCfg getMapCfg(air_pressure_sensor_type_e sensorType)
static FallbackSensor mapCombiner2(SensorType::Map2, SensorType::MapFast2, SensorType::MapSlow2)
static LinearFunc mapConverter
static FunctionalSensor slowMapSensor(SensorType::MapSlow, MS2NT(50))
static LinearFunc baroConverter
void configureMapFunction(LinearFunc &converter, air_pressure_sensor_type_e sensorType)
static MapAverager fastMapSensor(SensorType::MapFast, MS2NT(200))
static MapAverager fastMapSensor2(SensorType::MapFast2, MS2NT(200))
static FunctionalSensor compressorDischargePress(SensorType::CompressorDischargePressure, MS2NT(50))
MapAverager & getMapAvg(size_t cylinderBankIndex)
air_pressure_sensor_type_e
@ CompressorDischargePressure
air_pressure_sensor_config_s sensor
air_pressure_sensor_type_e type
float mapHighValueVoltage
adc_channel_e compressorDischargePressureChannel
float mapErrorDetectionTooHigh
air_pressure_sensor_config_s baroSensor
adc_channel_e throttleInletPressureChannel
float mapErrorDetectionTooLow