auto-sync

This commit is contained in:
rusEfi 2016-07-23 14:03:36 -04:00
parent 8a5108d55d
commit 6b165c1999
4 changed files with 11 additions and 3 deletions

View File

@ -412,7 +412,11 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F) {
engineConfiguration->iat.config.bias_resistor = 2700;
#if EFI_PROD_CODE
engineConfiguration->warningPeriod = 10;
#else
engineConfiguration->warningPeriod = 0;
#endif
engineConfiguration->step1rpm = 3000;
engineConfiguration->step1timing = 10;

View File

@ -1724,7 +1724,7 @@ typedef enum {
CUSTOM_OBD_52 = 6052,
CUSTOM_OBD_53 = 6053,
CUSTOM_OBD_54 = 6054,
CUSTOM_OBD_55 = 6035,
CUSTOM_OBD_55 = 6055,
CUSTOM_OBD_56 = 6056,
CUSTOM_OBD_57 = 6057,
CUSTOM_OBD_58 = 6058,

View File

@ -497,8 +497,12 @@ static void setVBattVoltage(float voltage) {
}
static void initMockVoltage(void) {
setCltVoltage(2);
addConsoleActionF("set_mock_clt_voltage", setCltVoltage);
setIatVoltage(2);
addConsoleActionF("set_mock_iat_voltage", setIatVoltage);
addConsoleActionF("set_mock_maf_voltage", setMafVoltage);
addConsoleActionF("set_mock_afr_voltage", setAfrVoltage);
addConsoleActionF("set_mock_tps_voltage", setTpsVoltage);

View File

@ -109,7 +109,7 @@ float getCoolantTemperature(DECLARE_ENGINE_PARAMETER_F) {
if (!isValidCoolantTemperature(temperature)) {
efiAssert(engineConfiguration!=NULL, "NULL engineConfiguration", NAN);
if (engineConfiguration->hasCltSensor) {
warning(CUSTOM_OBD_26, "unrealistic CLT %f", temperature);
warning(OBD_Engine_Coolant_Temperature_Circuit_Malfunction, "unrealistic CLT %f", temperature);
}
return LIMPING_MODE_CLT_TEMPERATURE;
}
@ -172,7 +172,7 @@ float getIntakeAirTemperature(DECLARE_ENGINE_PARAMETER_F) {
if (!isValidIntakeAirTemperature(temperature)) {
efiAssert(engineConfiguration!=NULL, "NULL engineConfiguration", NAN);
if (engineConfiguration->hasIatSensor) {
warning(CUSTOM_OBD_27, "unrealistic IAT %f", temperature);
warning(OBD_Intake_Air_Temperature_Circuit_Malfunction, "unrealistic IAT %f", temperature);
}
return LIMPING_MODE_IAT_TEMPERATURE;
}