auto-sync
This commit is contained in:
parent
6bde5d1966
commit
1765a99358
|
@ -23,7 +23,7 @@ void setDodgeNeonEngineConfiguration(engine_configuration_s *engineConfiguration
|
||||||
|
|
||||||
engineConfiguration->triggerConfig.triggerType = TT_DODGE_NEON_1995;
|
engineConfiguration->triggerConfig.triggerType = TT_DODGE_NEON_1995;
|
||||||
|
|
||||||
engineConfiguration->algorithm = LM_TPS;
|
engineConfiguration->algorithm = LM_ALPHA_N;
|
||||||
|
|
||||||
// set_rpm_hard_limit 4000
|
// set_rpm_hard_limit 4000
|
||||||
engineConfiguration->rpmHardLimit = 4000; // yes, 4k. let's play it safe for now
|
engineConfiguration->rpmHardLimit = 4000; // yes, 4k. let's play it safe for now
|
||||||
|
|
|
@ -47,7 +47,7 @@ static void setHondaAccordConfigurationCommon(engine_configuration_s *engineConf
|
||||||
|
|
||||||
// engineConfiguration->algorithm = LM_SPEED_DENSITY;
|
// engineConfiguration->algorithm = LM_SPEED_DENSITY;
|
||||||
// I want to start with a simple Alpha-N
|
// I want to start with a simple Alpha-N
|
||||||
engineConfiguration->algorithm = LM_TPS;
|
engineConfiguration->algorithm = LM_ALPHA_N;
|
||||||
setFuelLoadBin(engineConfiguration, 0, 100);
|
setFuelLoadBin(engineConfiguration, 0, 100);
|
||||||
setTimingLoadBin(engineConfiguration, 0, 100);
|
setTimingLoadBin(engineConfiguration, 0, 100);
|
||||||
|
|
||||||
|
|
|
@ -314,6 +314,13 @@ void setMiata1996(engine_configuration_s *engineConfiguration, board_configurati
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// todo: extract an array16x16 type? extract a method?
|
||||||
|
for (int k = 0; k < AD_LOAD_COUNT; k++) {
|
||||||
|
for (int r = 0; r < AD_RPM_COUNT; r++) {
|
||||||
|
engineConfiguration->ignitionTable[k][r] = miata_maf_advance_table[k][r];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// upside down
|
// upside down
|
||||||
boardConfiguration->triggerInputPins[0] = GPIOA_5;
|
boardConfiguration->triggerInputPins[0] = GPIOA_5;
|
||||||
boardConfiguration->triggerInputPins[1] = GPIOC_6;
|
boardConfiguration->triggerInputPins[1] = GPIOC_6;
|
||||||
|
|
|
@ -98,7 +98,7 @@ const char * pinModeToString(pin_output_mode_e mode) {
|
||||||
|
|
||||||
const char * algorithmToString(engine_load_mode_e mode) {
|
const char * algorithmToString(engine_load_mode_e mode) {
|
||||||
switch(mode) {
|
switch(mode) {
|
||||||
case LM_TPS:
|
case LM_ALPHA_N:
|
||||||
return "Alpha-N";
|
return "Alpha-N";
|
||||||
case LM_MAF:
|
case LM_MAF:
|
||||||
return "Maf";
|
return "Maf";
|
||||||
|
|
|
@ -163,9 +163,8 @@ typedef enum {
|
||||||
LM_MAF = 0,
|
LM_MAF = 0,
|
||||||
/**
|
/**
|
||||||
* Throttle Position Sensor value is used as engine load. http://en.wikipedia.org/wiki/Throttle_position_sensor
|
* Throttle Position Sensor value is used as engine load. http://en.wikipedia.org/wiki/Throttle_position_sensor
|
||||||
* That's know as Alpha N
|
|
||||||
*/
|
*/
|
||||||
LM_TPS = 1,
|
LM_ALPHA_N = 1,
|
||||||
/**
|
/**
|
||||||
* raw Manifold Absolute Pressure sensor value is used as engine load http://en.wikipedia.org/wiki/MAP_sensor
|
* raw Manifold Absolute Pressure sensor value is used as engine load http://en.wikipedia.org/wiki/MAP_sensor
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -74,7 +74,7 @@ float getEngineLoadT(Engine *engine) {
|
||||||
// SD engine load is used for timing lookup but not for fuel calculation
|
// SD engine load is used for timing lookup but not for fuel calculation
|
||||||
case LM_MAP:
|
case LM_MAP:
|
||||||
return getMap();
|
return getMap();
|
||||||
case LM_TPS:
|
case LM_ALPHA_N:
|
||||||
return getTPS();
|
return getTPS();
|
||||||
default:
|
default:
|
||||||
firmwareError("Unexpected engine load parameter: %d", engineConfiguration->algorithm);
|
firmwareError("Unexpected engine load parameter: %d", engineConfiguration->algorithm);
|
||||||
|
|
|
@ -241,5 +241,5 @@ void firmwareError(const char *fmt, ...) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int getRusEfiVersion(void) {
|
int getRusEfiVersion(void) {
|
||||||
return 20140927;
|
return 20140928;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue