rusefi/firmware/config/engines/m111.cpp

51 lines
1.5 KiB
C++

/*
* m111.cpp
*
* @date Dec 14, 2020
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#include "m111.h"
#include "thermistors.h"
#if HW_PROTEUS
#include "proteus_meta.h"
#endif // HW_PROTEUS
void setM111EngineConfiguration() {
engineConfiguration->specs.cylindersCount = 4;
engineConfiguration->specs.firingOrder = FO_1_3_4_2;
engineConfiguration->specs.displacement = 2.295f;
engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS;
engineConfiguration->crankingInjectionMode = IM_SEQUENTIAL;
engineConfiguration->injectionMode = IM_SEQUENTIAL;
strcpy(engineConfiguration->engineMake, ENGINE_MAKE_MERCEDES);
strcpy(engineConfiguration->engineCode, "M111");
engineConfiguration->vvtMode[0] = VVT_FIRST_HALF;
engineConfiguration->globalTriggerAngleOffset = 109; // please use a timing light?
setAtSensor(&engineConfiguration->iat, /*temp low*/0, 7400, /*temp mid*/22, 2180, /*temp high*/ 100, 180);
engineConfiguration->map.sensor.type = MT_CUSTOM;
// GM TMAP is recommended
engineConfiguration->map.sensor.lowValue = 20;
engineConfiguration->mapLowValueVoltage = 0.3;
engineConfiguration->map.sensor.highValue = 250;
engineConfiguration->mapHighValueVoltage = 4.65;
}
void setMreM111EngineConfiguration() {
setM111EngineConfiguration();
}
void setProteusM111EngineConfiguration() {
setM111EngineConfiguration();
#if HW_PROTEUS
engineConfiguration->triggerInputPins[0] = PROTEUS_VR_1;
engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_2;
#endif // HW_PROTEUS
}