mirror of https://github.com/FOME-Tech/fome-fw.git
auto-sync
This commit is contained in:
parent
25651f1b4c
commit
2f2ffbf63d
|
@ -24,6 +24,7 @@ void setTestEngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
|||
triggerConfig->customSkippedToothCount = 0;
|
||||
engineConfiguration->useOnlyFrontForTrigger = true;
|
||||
|
||||
setWholeIatCorrTimingTable(0 PASS_ENGINE_PARAMETER);
|
||||
|
||||
engineConfiguration->ignitionMode = IM_ONE_COIL;
|
||||
setConstantDwell(3 PASS_ENGINE_PARAMETER); // 50% duty cycle @ 5000 rpm
|
||||
|
|
|
@ -129,15 +129,22 @@ void setFuelTablesLoadBin(float minValue, float maxValue DECLARE_ENGINE_PARAMETE
|
|||
setTableBin2(config->afrLoadBins, FUEL_LOAD_COUNT, minValue, maxValue, 1);
|
||||
}
|
||||
|
||||
void setWholeTimingTable(float value DECLARE_ENGINE_PARAMETER_S) {
|
||||
// todo: table helper?
|
||||
void setTimingMap(ignition_table_t map, float value) {
|
||||
for (int l = 0; l < IGN_LOAD_COUNT; l++) {
|
||||
for (int r = 0; r < IGN_RPM_COUNT; r++) {
|
||||
config->ignitionTable[l][r] = value;
|
||||
map[l][r] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void setWholeIatCorrTimingTable(float value DECLARE_ENGINE_PARAMETER_S) {
|
||||
setTimingMap(config->ignitionIatCorrTable, value);
|
||||
}
|
||||
|
||||
void setWholeTimingTable(float value DECLARE_ENGINE_PARAMETER_S) {
|
||||
setTimingMap(config->ignitionTable, value);
|
||||
}
|
||||
|
||||
static void initTemperatureCurve(int size, float *bins, float *values) {
|
||||
for (int i = 0; i < size; i++) {
|
||||
bins[i] = -40 + i * 10;
|
||||
|
|
|
@ -50,6 +50,7 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F);
|
|||
void setMap(fuel_table_t table, float value);
|
||||
void setWholeFuelMap(float value DECLARE_ENGINE_PARAMETER_S);
|
||||
void setFuelTablesLoadBin(float minValue, float maxValue DECLARE_ENGINE_PARAMETER_S);
|
||||
void setWholeIatCorrTimingTable(float value DECLARE_ENGINE_PARAMETER_S);
|
||||
void setWholeTimingTable(float value DECLARE_ENGINE_PARAMETER_S);
|
||||
void setConstantDwell(float dwellMs DECLARE_ENGINE_PARAMETER_S);
|
||||
void printFloatArray(const char *prefix, float array[], int size);
|
||||
|
|
|
@ -290,5 +290,5 @@ int getRusEfiVersion(void) {
|
|||
return 123; // this is here to make the compiler happy about the unused array
|
||||
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
||||
return 3211; // this is here to make the compiler happy about the unused array
|
||||
return 20150426;
|
||||
return 20150427;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue