19 if (std::isnan(mapKPa) || mapKPa > 110 || mapKPa < 60) {
32#if EFI_MAP_AVERAGING && defined (MODULE_MAP_AVERAGING)
39 char pinNameBuffer[16];
41 efiPrintf(
"MAP %.2fv @%s",
45 efiPrintf(
"at %.2fv=%.2f at %.2fv=%.2f",
55 efiPrintf(
"min=%.2f@%.2f max=%.2f@%.2f",
70 efiPrintf(
"Get initial baro MAP pressure = %.2fkPa", storedInitialBaroPressure);
73 if (!std::isnan(storedInitialBaroPressure)) {
74 efiPrintf(
"Using this fixed MAP pressure to override the baro correction!");
79 efiPrintf(
"The baro pressure is invalid. The fixed baro correction will be disabled!");
const char * getAir_pressure_sensor_type_e(air_pressure_sensor_type_e value)
static void setMockValue(SensorType type, float value, bool mockRedundant=false)
virtual bool hasSensor() const
virtual SensorResult get() const =0
static float getOrZero(SensorType type)
void addConsoleAction(const char *token, Void callback)
Register console action without parameters.
static constexpr engine_configuration_s * engineConfiguration
char * getPinNameByAdcChannel(const char *msg, adc_channel_e hwChannel, char *buffer, size_t bufferSize)
bool warning(ObdCode code, const char *fmt,...)
static void printMAPInfo()
static float validateBaroMap(float mapKPa)
@ OBD_Barometric_Press_Circ
air_pressure_sensor_config_s sensor
air_pressure_sensor_type_e type
float mapHighValueVoltage
air_pressure_sensor_config_s baroSensor
bool useFixedBaroCorrFromMap