45 return {0, -6.64, 5, 182.78};
47 return {0.306, 20, 4.897, 105};
50 return {0.204, 20, 4.896, 250};
52 return {0.5, 91.422, 3.0, 0};
53 case MT_DODGE_NEON_2003:
54 return {0.4, 15.34, 4.5, 100};
56 return {0, 0, 5, 200};
58 return {0.631, 40, 4.914, 304};
60 return {0, 8.8, 5, 208};
62 return {0, 10, 5, 105};
63 case MT_TOYOTA_89420_02010:
64 return {3.7 - 2, 33.32, 3.7, 100};
66 return {0, 2.5, 5, 117};
69 return {0.4 , 20 , 4.65, 250};
71 return {0.2, 20, 4.8, 400};
73 return {1.0, 60, 4.5, 270};
static void UnsubscribeSensor(FunctionalSensor &sensor)
static AdcSubscriptionEntry * SubscribeSensor(FunctionalSensor &sensor, adc_channel_e channel, float lowpassCutoffHZ, float voltsPerAdcVolt=0.0f)
Class for sensors that convert from some raw floating point value (ex: voltage, frequency,...
void setFunction(SensorConverter &func)
void setFunction(SensorConverter &func)
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 slowMapSensor2(SensorType::MapSlow2, MS2NT(50))
static FunctionalSensor baroSensor(SensorType::BarometricPressure, MS2NT(50))
MapAverager & getMapAvg(size_t idx)
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)
MapAverager fastMapSensor(SensorType::MapFast, MS2NT(200))
MapAverager fastMapSensor2(SensorType::MapFast2, MS2NT(200))
static FunctionalSensor compressorDischargePress(SensorType::CompressorDischargePressure, MS2NT(50))
engine_configuration_s * engineConfiguration
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