From b8e191917c8d3ddfdfe1c22ab0a2702f202b5165 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Wed, 18 Mar 2015 08:10:40 -0500 Subject: [PATCH] auto-sync --- firmware/config/engines/bmw_e34.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/firmware/config/engines/bmw_e34.cpp b/firmware/config/engines/bmw_e34.cpp index c1e07d3234..b198e5f357 100644 --- a/firmware/config/engines/bmw_e34.cpp +++ b/firmware/config/engines/bmw_e34.cpp @@ -13,6 +13,7 @@ #include "global.h" #include "bmw_e34.h" +#include "thermistors.h" EXTERN_ENGINE; @@ -20,9 +21,10 @@ void setBmwE34(DECLARE_ENGINE_PARAMETER_F) { board_configuration_s * boardConfiguration = &engineConfiguration->bc; engineConfiguration->algorithm = LM_PLAIN_MAF; +// engineConfiguration->algorithm = LM_SPEED_DENSITY; engineConfiguration->injector.flow = 750; - boardConfiguration->tunerStudioSerialSpeed = 9600; + boardConfiguration->tunerStudioSerialSpeed = 115200; engineConfiguration->rpmHardLimit = 6000; setOperationMode(engineConfiguration, FOUR_STROKE_CRANK_SENSOR); @@ -97,8 +99,17 @@ void setBmwE34(DECLARE_ENGINE_PARAMETER_F) { engineConfiguration->map.sensor.type = MT_MPX4250; - engineConfiguration->hasCltSensor = false; - engineConfiguration->hasIatSensor = false; +// engineConfiguration->hasCltSensor = false; +// engineConfiguration->hasIatSensor = false; + engineConfiguration->hasCltSensor = true; + engineConfiguration->hasIatSensor = true; + + setThermistorConfiguration(&engineConfiguration->clt, -10, 9300, 20, 2500, 80, 335); + engineConfiguration->iat.bias_resistor = 2490; + + setThermistorConfiguration(&engineConfiguration->iat, -10, 9300, 20, 2500, 80, 335); + engineConfiguration->clt.bias_resistor = 2490; + /** * This saves a couple of ticks in trigger emulation methods