2020-12-14 21:09:35 -08:00
|
|
|
/*
|
|
|
|
* m111.cpp
|
|
|
|
*
|
|
|
|
* @date Dec 14, 2020
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "m111.h"
|
2023-03-27 21:13:10 -07:00
|
|
|
#include "thermistors.h"
|
2020-12-14 21:09:35 -08:00
|
|
|
|
2023-03-27 15:46:17 -07:00
|
|
|
#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");
|
2020-12-14 21:09:35 -08:00
|
|
|
|
2023-03-27 21:13:10 -07:00
|
|
|
engineConfiguration->vvtMode[0] = VVT_FIRST_HALF;
|
2023-03-27 15:46:17 -07:00
|
|
|
engineConfiguration->globalTriggerAngleOffset = 109; // please use a timing light?
|
2023-03-27 21:13:10 -07:00
|
|
|
|
|
|
|
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;
|
2020-12-14 21:09:35 -08:00
|
|
|
}
|
2023-03-27 15:46:17 -07:00
|
|
|
|
|
|
|
void setMreM111EngineConfiguration() {
|
|
|
|
setM111EngineConfiguration();
|
|
|
|
}
|
|
|
|
|
|
|
|
void setProteusM111EngineConfiguration() {
|
|
|
|
setM111EngineConfiguration();
|
|
|
|
#if HW_PROTEUS
|
2023-03-27 21:13:10 -07:00
|
|
|
engineConfiguration->triggerInputPins[0] = PROTEUS_VR_1;
|
|
|
|
engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_2;
|
2023-03-27 15:46:17 -07:00
|
|
|
#endif // HW_PROTEUS
|
|
|
|
}
|