mirror of https://github.com/rusefi/rusefi.git
This commit is contained in:
parent
b55fa15f21
commit
96bad7a392
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
#include "hyundai.h"
|
#include "hyundai.h"
|
||||||
#include "proteus_meta.h"
|
#include "proteus_meta.h"
|
||||||
|
#include "defaults.h"
|
||||||
|
|
||||||
static void set201xHyundai() {
|
static void set201xHyundai() {
|
||||||
setPPSCalibration(0.73, 4.0, 0.34, 1.86);
|
setPPSCalibration(0.73, 4.0, 0.34, 1.86);
|
||||||
|
@ -28,6 +29,9 @@ void setHyundaiPb() {
|
||||||
engineConfiguration->globalTriggerAngleOffset = 90;
|
engineConfiguration->globalTriggerAngleOffset = 90;
|
||||||
|
|
||||||
set201xHyundai();
|
set201xHyundai();
|
||||||
|
// Injectors flow 1214 cc/min at 100 bar pressure
|
||||||
|
engineConfiguration->injector.flow = 1214;
|
||||||
|
setGDIFueling();
|
||||||
|
|
||||||
engineConfiguration->map.sensor.type = MT_CUSTOM;
|
engineConfiguration->map.sensor.type = MT_CUSTOM;
|
||||||
engineConfiguration->map.sensor.lowValue = 20;
|
engineConfiguration->map.sensor.lowValue = 20;
|
||||||
|
|
|
@ -47,15 +47,8 @@ static void commonPassatB6() {
|
||||||
|
|
||||||
// Injectors flow 1214 cc/min at 100 bar pressure
|
// Injectors flow 1214 cc/min at 100 bar pressure
|
||||||
engineConfiguration->injector.flow = 1214;
|
engineConfiguration->injector.flow = 1214;
|
||||||
// Use high pressure sensor
|
setGDIFueling();
|
||||||
engineConfiguration->injectorPressureType = IPT_High;
|
|
||||||
// Automatic compensation of injector flow based on rail pressure
|
|
||||||
engineConfiguration->injectorCompensationMode = ICM_SensedRailPressure;
|
|
||||||
// Reference rail pressure is 10 000 kPa = 100 bar
|
|
||||||
engineConfiguration->fuelReferencePressure = 10000;
|
|
||||||
//setting "flat" 0.2 ms injector's lag time
|
|
||||||
setArrayValues(engineConfiguration->injector.battLagCorr, 0.2);
|
|
||||||
|
|
||||||
strcpy(engineConfiguration->engineMake, ENGINE_MAKE_VAG);
|
strcpy(engineConfiguration->engineMake, ENGINE_MAKE_VAG);
|
||||||
strcpy(engineConfiguration->engineCode, "BPY");
|
strcpy(engineConfiguration->engineCode, "BPY");
|
||||||
strcpy(engineConfiguration->vehicleName, "test");
|
strcpy(engineConfiguration->vehicleName, "test");
|
||||||
|
|
|
@ -14,6 +14,17 @@ static void setDefaultAlternatorParameters() {
|
||||||
engineConfiguration->alternatorControl.periodMs = 100;
|
engineConfiguration->alternatorControl.periodMs = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void setGDIFueling() {
|
||||||
|
// Use high pressure sensor
|
||||||
|
engineConfiguration->injectorPressureType = IPT_High;
|
||||||
|
// Automatic compensation of injector flow based on rail pressure
|
||||||
|
engineConfiguration->injectorCompensationMode = ICM_SensedRailPressure;
|
||||||
|
// Reference rail pressure is 10 000 kPa = 100 bar
|
||||||
|
engineConfiguration->fuelReferencePressure = 10000;
|
||||||
|
//setting "flat" 0.2 ms injector's lag time
|
||||||
|
setArrayValues(engineConfiguration->injector.battLagCorr, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
/* Cylinder to bank mapping */
|
/* Cylinder to bank mapping */
|
||||||
void setLeftRightBanksNeedBetterName() {
|
void setLeftRightBanksNeedBetterName() {
|
||||||
for (size_t i = 0; i < engineConfiguration->cylindersCount; i++) {
|
for (size_t i = 0; i < engineConfiguration->cylindersCount; i++) {
|
||||||
|
|
|
@ -7,6 +7,7 @@ void setDefaultBaseEngine();
|
||||||
void setDefaultFuel();
|
void setDefaultFuel();
|
||||||
void setDefaultIgnition();
|
void setDefaultIgnition();
|
||||||
void setDefaultCranking();
|
void setDefaultCranking();
|
||||||
|
void setGDIFueling();
|
||||||
|
|
||||||
void setPPSInputs(adc_channel_e pps1, adc_channel_e pps2);
|
void setPPSInputs(adc_channel_e pps1, adc_channel_e pps2);
|
||||||
void setPPSCalibration(float primaryUp, float primaryDown, float secondaryUp, float secondaryDown);
|
void setPPSCalibration(float primaryUp, float primaryDown, float secondaryUp, float secondaryDown);
|
||||||
|
|
Loading…
Reference in New Issue