This commit is contained in:
rusefillc 2024-03-06 14:15:03 -05:00
parent d17a7c58bd
commit dcb2cfc27d
3 changed files with 9 additions and 7 deletions

View File

@ -35,6 +35,8 @@ static void set201xHyundai() {
// set engine_type 104 // set engine_type 104
void setHyundaiPb() { void setHyundaiPb() {
setGDIFueling();
// override injection phase
cannedPbTables(); cannedPbTables();
setInline4(); setInline4();
engineConfiguration->displacement = 1.6; engineConfiguration->displacement = 1.6;
@ -63,7 +65,6 @@ void setHyundaiPb() {
set201xHyundai(); set201xHyundai();
// 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;
setGDIFueling();
engineConfiguration->injectionMode = IM_SEQUENTIAL; engineConfiguration->injectionMode = IM_SEQUENTIAL;
engineConfiguration->crankingInjectionMode = IM_SEQUENTIAL; engineConfiguration->crankingInjectionMode = IM_SEQUENTIAL;

View File

@ -2,11 +2,11 @@
void cannedPbTables() { void cannedPbTables() {
#if (IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT) && (IGN_RPM_COUNT == DEFAULT_IGN_RPM_COUNT) && (FUEL_LOAD_COUNT == DEFAULT_FUEL_LOAD_COUNT) && (FUEL_RPM_COUNT == DEFAULT_FUEL_LOAD_COUNT) #if (IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT) && (IGN_RPM_COUNT == DEFAULT_IGN_RPM_COUNT) && (FUEL_LOAD_COUNT == DEFAULT_FUEL_LOAD_COUNT) && (FUEL_RPM_COUNT == DEFAULT_FUEL_LOAD_COUNT)
cannedvvtTable1(); pbcannedvvtTable1();
cannedvvtTable2(); pbcannedvvtTable2();
pbcannedignitionTable(); pbcannedignitionTable();
pbcannedveTable(); pbcannedveTable();
cannedinjectionPhase(); pbcannedinjectionPhase();
pbcannedlambdaTable(); pbcannedlambdaTable();
#endif #endif
} }

View File

@ -1,6 +1,6 @@
#if (IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT) && (IGN_RPM_COUNT == DEFAULT_IGN_RPM_COUNT) && (FUEL_LOAD_COUNT == DEFAULT_FUEL_LOAD_COUNT) && (FUEL_RPM_COUNT == DEFAULT_FUEL_LOAD_COUNT) #if (IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT) && (IGN_RPM_COUNT == DEFAULT_IGN_RPM_COUNT) && (FUEL_LOAD_COUNT == DEFAULT_FUEL_LOAD_COUNT) && (FUEL_RPM_COUNT == DEFAULT_FUEL_LOAD_COUNT)
static void cannedvvtTable1() { static void pbcannedvvtTable1() {
static const float hardCodedvvtTable1[8][8] = { static const float hardCodedvvtTable1[8][8] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, }, {0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, }, {0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
@ -14,7 +14,7 @@ static void cannedvvtTable1() {
copyTable(config->vvtTable1, hardCodedvvtTable1); copyTable(config->vvtTable1, hardCodedvvtTable1);
} }
static void cannedvvtTable2() { static void pbcannedvvtTable2() {
static const float hardCodedvvtTable2[8][8] = { static const float hardCodedvvtTable2[8][8] = {
{50.000, 50.000, 50.000, 50.000, 50.000, 40.000, 40.000, 40.000, }, {50.000, 50.000, 50.000, 50.000, 50.000, 40.000, 40.000, 40.000, },
{50.000, 50.000, 50.000, 50.000, 50.000, 40.000, 40.000, 40.000, }, {50.000, 50.000, 50.000, 50.000, 50.000, 40.000, 40.000, 40.000, },
@ -72,7 +72,7 @@ static void pbcannedveTable() {
copyTable(config->veTable, hardCodedveTable); copyTable(config->veTable, hardCodedveTable);
} }
static void cannedinjectionPhase() { static void pbcannedinjectionPhase() {
static const float hardCodedinjectionPhase[16][16] = { static const float hardCodedinjectionPhase[16][16] = {
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, }, {-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, }, {-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, },
@ -115,4 +115,5 @@ static void pbcannedlambdaTable() {
}; };
copyTable(config->lambdaTable, hardCodedlambdaTable); copyTable(config->lambdaTable, hardCodedlambdaTable);
} }
#endif #endif