auto-sync

This commit is contained in:
rusEfi 2015-02-11 21:04:21 -06:00
parent a2e1dbc1f1
commit ecd2bf62fc
5 changed files with 14 additions and 4 deletions

View File

@ -176,6 +176,8 @@ case LM_ALPHA_N:
return "LM_ALPHA_N";
case LM_PLAIN_MAF:
return "LM_PLAIN_MAF";
case LM_REAL_MAF:
return "LM_REAL_MAF";
case LM_MAP:
return "LM_MAP";
case LM_SPEED_DENSITY:

View File

@ -139,6 +139,8 @@ void setDefaultConfiguration(engine_configuration_s *engineConfiguration, board_
setDetaultVETable(engineConfiguration);
setBosch0280218037(engineConfiguration);
engineConfiguration->injector.lag = 1.0;
engineConfiguration->acCutoffLowRpm = 700;

View File

@ -185,6 +185,11 @@ typedef enum {
*/
LM_SPEED_DENSITY = 3,
/**
* MAF with a known kg/hour function
*/
LM_REAL_MAF = 4,
Force_4b_engine_load_mode = ENUM_32_BITS,
} engine_load_mode_e;

View File

@ -32,6 +32,7 @@ void setBosch0280218037(engine_configuration_s *engineConfiguration) {
while (i < MAF_DECODING_COUNT) {
engineConfiguration->mafDecoding[i] = 738;
engineConfiguration->mafDecodingBins[i++] = 4.98046875 + i;
engineConfiguration->mafDecodingBins[i] = 4.98046875 + i;
i++;
}
}

View File

@ -206,7 +206,7 @@ struct trigger_config_s @brief Trigger wheel(s) configuration
custom bool32_t 4 bits, U32, @OFFSET@, [0:0], "false", "true"
custom trigger_type_e 4 bits, U32, @OFFSET@, [0:4], "custom toothed wheel", "ford aspire", "dodge neon", "Miata NA", "Miata NB", "GM_7X", "Cooper", "Mazda SOHC 4", "60/2", "36/1", "Accord CD", "MITSU", "ACCORD 2", "ACCORD DIP", "Neon 2003", "MAZDA D 1+4", "1+1", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID"
custom trigger_type_e 4 bits, U32, @OFFSET@, [0:4], "custom toothed wheel", "ford aspire", "dodge neon", "Miata NA", "Miata NB", "GM_7X", "Cooper", "Mazda SOHC 4", "60/2", "36/1", "Accord CD", "MITSU", "ACCORD 2", "ACCORD DIP", "Neon 2003", "MAZDA D 1+4", "1+1", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID"
trigger_type_e type;
bit customIsSynchronizationNeeded;
@ -473,8 +473,8 @@ custom pin_input_mode_e 4 scalar, F32, @OFFSET@, "ms", 1, 0, 0, 200, 1
le_formula_t timingMultiplier;
le_formula_t timingAdditive;
float[MAF_DECODING_COUNT] mafDecoding;
float[MAF_DECODING_COUNT] mafDecodingBins;
float[MAF_DECODING_COUNT] mafDecoding;;"kg/hour", 1, 0, -500.0, 4000.0, 2
float[MAF_DECODING_COUNT] mafDecodingBins;; "V", 1, 0, -5.0, 150.0, 2
fuel_table_t fuelTable;