auto-sync

This commit is contained in:
rusEfi 2017-01-21 17:02:37 -05:00
parent 2b6c55d47b
commit 62e21b1530
1 changed files with 29 additions and 0 deletions

View File

@ -15,6 +15,26 @@
EXTERN_ENGINE;
static const float ve18fsioRpmBins[FSIO_TABLE_8] = {
650, 800,1650,2500,3350,4200,5050,7000
};
float fsio_table[FSIO_TABLE_8][FSIO_TABLE_8] {
/* Generated by TS2C on Fri Jan 20 20:35:41 EST 2017*/
{/* 0 20.000 *//* 0 650.0*/0.000, /* 1 800.0*/5.000, /* 2 1650.0*/20.000, /* 3 2500.0*/20.000, /* 4 3350.0*/32.000, /* 5 4200.0*/32.000, /* 6 5050.0*/32.000, /* 7 7000.0*/32.000, },
{/* 1 30.000 *//* 0 650.0*/0.000, /* 1 800.0*/5.000, /* 2 1650.0*/20.000, /* 3 2500.0*/20.000, /* 4 3350.0*/32.000, /* 5 4200.0*/32.000, /* 6 5050.0*/32.000, /* 7 7000.0*/32.000, },
{/* 2 40.000 *//* 0 650.0*/0.000, /* 1 800.0*/5.000, /* 2 1650.0*/20.000, /* 3 2500.0*/20.000, /* 4 3350.0*/32.000, /* 5 4200.0*/32.000, /* 6 5050.0*/32.000, /* 7 7000.0*/32.000, },
{/* 3 60.000 *//* 0 650.0*/0.000, /* 1 800.0*/5.000, /* 2 1650.0*/20.000, /* 3 2500.0*/20.000, /* 4 3350.0*/32.000, /* 5 4200.0*/32.000, /* 6 5050.0*/32.000, /* 7 7000.0*/32.000, },
{/* 4 70.000 *//* 0 650.0*/0.000, /* 1 800.0*/5.000, /* 2 1650.0*/20.000, /* 3 2500.0*/20.000, /* 4 3350.0*/32.000, /* 5 4200.0*/32.000, /* 6 5050.0*/32.000, /* 7 7000.0*/32.000, },
{/* 5 90.000 *//* 0 650.0*/0.000, /* 1 800.0*/5.000, /* 2 1650.0*/20.000, /* 3 2500.0*/20.000, /* 4 3350.0*/32.000, /* 5 4200.0*/32.000, /* 6 5050.0*/32.000, /* 7 7000.0*/32.000, },
{/* 6 100.000 *//* 0 650.0*/0.000, /* 1 800.0*/5.000, /* 2 1650.0*/20.000, /* 3 2500.0*/20.000, /* 4 3350.0*/32.000, /* 5 4200.0*/32.000, /* 6 5050.0*/32.000, /* 7 7000.0*/32.000, },
{/* 7 120.000 *//* 0 650.0*/0.000, /* 1 800.0*/5.000, /* 2 1650.0*/20.000, /* 3 2500.0*/20.000, /* 4 3350.0*/32.000, /* 5 4200.0*/32.000, /* 6 5050.0*/32.000, /* 7 7000.0*/32.000, },
};
static const float ve18vvtRpmBins[FUEL_RPM_COUNT] = {
700.0, 850.0 , 943.0 ,
1112.0 , 1310.0 , 1545.0 ,
@ -139,6 +159,15 @@ void setMazdaMiata2003EngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
memcpy(config->ignitionLoadBins, ve18vvtLoadBins, sizeof(ve18vvtLoadBins));
copyTimingTable(mapBased18vvtTimingTable, config->ignitionTable);
memcpy(config->fsioTable1RpmBins, ve18fsioRpmBins, sizeof(ve18fsioRpmBins));
for (int loadIndex = 0; loadIndex < FSIO_TABLE_8; loadIndex++) {
for (int rpmIndex = 0; rpmIndex < FSIO_TABLE_8; rpmIndex++) {
config->fsioTable1[loadIndex][rpmIndex] = fsio_table[loadIndex][rpmIndex];
}
}
engineConfiguration->tpsMin = 100; // convert 12to10 bit (ADC/4)
engineConfiguration->tpsMax = 650; // convert 12to10 bit (ADC/4)