auto-sync
This commit is contained in:
parent
5605d05b21
commit
90480a8eb9
|
@ -3,8 +3,9 @@
|
||||||
*
|
*
|
||||||
* FORD_ESCORT_GT = 14
|
* FORD_ESCORT_GT = 14
|
||||||
* MIATA_1990 = 19
|
* MIATA_1990 = 19
|
||||||
* MIATA_1994 = 20
|
* MIATA_1994_DEVIATOR = 20
|
||||||
* MIATA_1996 = 21
|
* MIATA_1996 = 21
|
||||||
|
* MIATA_1994_SPAGS = 24
|
||||||
*
|
*
|
||||||
* @date Apr 11, 2014
|
* @date Apr 11, 2014
|
||||||
* @author Andrey Belomutskiy, (c) 2012-2014
|
* @author Andrey Belomutskiy, (c) 2012-2014
|
||||||
|
@ -211,11 +212,7 @@ void setFordEscortGt(engine_configuration_s *engineConfiguration, board_configur
|
||||||
setDefaultCrankingFuel(engineConfiguration);
|
setDefaultCrankingFuel(engineConfiguration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
static void setMiata1994_common(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration) {
|
||||||
* Frankenso board
|
|
||||||
* set_engine_type 20
|
|
||||||
*/
|
|
||||||
void setMiata1994(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration) {
|
|
||||||
commonMiataNa(engineConfiguration, boardConfiguration);
|
commonMiataNa(engineConfiguration, boardConfiguration);
|
||||||
engineConfiguration->displacement = 1.839;
|
engineConfiguration->displacement = 1.839;
|
||||||
|
|
||||||
|
@ -267,10 +264,6 @@ void setMiata1994(engine_configuration_s *engineConfiguration, board_configurati
|
||||||
|
|
||||||
boardConfiguration->fuelPumpPin = GPIOE_4;
|
boardConfiguration->fuelPumpPin = GPIOE_4;
|
||||||
|
|
||||||
boardConfiguration->injectionPins[0] = GPIOD_7;
|
|
||||||
boardConfiguration->injectionPins[1] = GPIOE_2;
|
|
||||||
boardConfiguration->injectionPins[2] = GPIOB_8;
|
|
||||||
boardConfiguration->injectionPins[3] = GPIOB_7;
|
|
||||||
boardConfiguration->injectionPins[4] = GPIO_NONE;
|
boardConfiguration->injectionPins[4] = GPIO_NONE;
|
||||||
boardConfiguration->injectionPins[5] = GPIO_NONE;
|
boardConfiguration->injectionPins[5] = GPIO_NONE;
|
||||||
boardConfiguration->injectionPinMode = OM_DEFAULT;
|
boardConfiguration->injectionPinMode = OM_DEFAULT;
|
||||||
|
@ -292,13 +285,39 @@ void setMiata1994(engine_configuration_s *engineConfiguration, board_configurati
|
||||||
engineConfiguration->cltAdcChannel = EFI_ADC_12;
|
engineConfiguration->cltAdcChannel = EFI_ADC_12;
|
||||||
engineConfiguration->iatAdcChannel = EFI_ADC_11;
|
engineConfiguration->iatAdcChannel = EFI_ADC_11;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* VBatt
|
* VBatt
|
||||||
*/
|
*/
|
||||||
engineConfiguration->vbattAdcChannel = EFI_ADC_14;
|
engineConfiguration->vbattAdcChannel = EFI_ADC_14;
|
||||||
engineConfiguration->vbattDividerCoeff = ((float) (8.2 + 33)) / 8.2 * 2;
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Frankenso board
|
||||||
|
* set_engine_type 20
|
||||||
|
*/
|
||||||
|
void setMiata1994_d(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration) {
|
||||||
|
setMiata1994_common(engineConfiguration, boardConfiguration);
|
||||||
|
engineConfiguration->vbattDividerCoeff = ((float) (8.2 + 33)) / 8.2 * 2;
|
||||||
|
/**
|
||||||
|
* This board was avoiding PE0 & PE1 mosfets altogether
|
||||||
|
*/
|
||||||
|
boardConfiguration->injectionPins[0] = GPIOD_7;
|
||||||
|
boardConfiguration->injectionPins[1] = GPIOE_2;
|
||||||
|
boardConfiguration->injectionPins[2] = GPIOB_8;
|
||||||
|
boardConfiguration->injectionPins[3] = GPIOB_7;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setMiata1994_s(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration) {
|
||||||
|
setMiata1994_common(engineConfiguration, boardConfiguration);
|
||||||
|
engineConfiguration->vbattDividerCoeff = ((float) (10.0 + 33)) / 10 * 2;
|
||||||
|
/**
|
||||||
|
* This board has PE0 & PE1 mosfets rewires tp PD3 and PD5
|
||||||
|
*/
|
||||||
|
boardConfiguration->injectionPins[0] = GPIOD_7;
|
||||||
|
boardConfiguration->injectionPins[1] = GPIOE_2;
|
||||||
|
boardConfiguration->injectionPins[2] = GPIOB_8;
|
||||||
|
boardConfiguration->injectionPins[3] = GPIOB_7;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -16,7 +16,8 @@
|
||||||
|
|
||||||
void setFordEscortGt(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration);
|
void setFordEscortGt(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration);
|
||||||
void setMiata1990(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration);
|
void setMiata1990(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration);
|
||||||
void setMiata1994(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration);
|
void setMiata1994_d(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration);
|
||||||
|
void setMiata1994_s(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration);
|
||||||
void setMiata1996(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration);
|
void setMiata1996(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration);
|
||||||
|
|
||||||
#endif /* MAZDA_MIATA_H_ */
|
#endif /* MAZDA_MIATA_H_ */
|
||||||
|
|
|
@ -231,8 +231,10 @@ case AUDI_AAN:
|
||||||
return "AUDI_AAN";
|
return "AUDI_AAN";
|
||||||
case MIATA_1996:
|
case MIATA_1996:
|
||||||
return "MIATA_1996";
|
return "MIATA_1996";
|
||||||
case MIATA_1994:
|
case MIATA_1994_DEVIATOR:
|
||||||
return "MIATA_1994";
|
return "MIATA_1994d";
|
||||||
|
case MIATA_1994_SPAGS:
|
||||||
|
return "MIATA_1994s";
|
||||||
case FORD_INLINE_6_1995:
|
case FORD_INLINE_6_1995:
|
||||||
return "FORD_INLINE_6_1995";
|
return "FORD_INLINE_6_1995";
|
||||||
case MIATA_1990:
|
case MIATA_1990:
|
||||||
|
|
|
@ -478,8 +478,11 @@ void resetConfigurationExt(Logging * logger, engine_type_e engineType, engine_co
|
||||||
case MIATA_1990:
|
case MIATA_1990:
|
||||||
setMiata1990(engineConfiguration, boardConfiguration);
|
setMiata1990(engineConfiguration, boardConfiguration);
|
||||||
break;
|
break;
|
||||||
case MIATA_1994:
|
case MIATA_1994_DEVIATOR:
|
||||||
setMiata1994(engineConfiguration, boardConfiguration);
|
setMiata1994_d(engineConfiguration, boardConfiguration);
|
||||||
|
break;
|
||||||
|
case MIATA_1994_SPAGS:
|
||||||
|
setMiata1994_s(engineConfiguration, boardConfiguration);
|
||||||
break;
|
break;
|
||||||
case MIATA_1996:
|
case MIATA_1996:
|
||||||
setMiata1996(engineConfiguration, boardConfiguration);
|
setMiata1996(engineConfiguration, boardConfiguration);
|
||||||
|
|
|
@ -60,8 +60,10 @@ const char* getConfigurationName(engine_type_e engineType) {
|
||||||
return "Mitsu 4G93";
|
return "Mitsu 4G93";
|
||||||
case MIATA_1990:
|
case MIATA_1990:
|
||||||
return "Miata 1990";
|
return "Miata 1990";
|
||||||
case MIATA_1994:
|
case MIATA_1994_DEVIATOR:
|
||||||
return "Miata 1994";
|
return "Miata 1994d";
|
||||||
|
case MIATA_1994_SPAGS:
|
||||||
|
return "Miata 1994s";
|
||||||
case MIATA_1996:
|
case MIATA_1996:
|
||||||
return "Miata 1996";
|
return "Miata 1996";
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -84,14 +84,15 @@ typedef enum {
|
||||||
HONDA_ACCORD_CD_DIP = 18,
|
HONDA_ACCORD_CD_DIP = 18,
|
||||||
|
|
||||||
MIATA_1990 = 19,
|
MIATA_1990 = 19,
|
||||||
MIATA_1994 = 20,
|
MIATA_1994_DEVIATOR = 20,
|
||||||
MIATA_1996 = 21,
|
MIATA_1996 = 21,
|
||||||
|
|
||||||
SUBARU_2003_WRX = 22,
|
SUBARU_2003_WRX = 22,
|
||||||
|
|
||||||
DODGE_NEON_2003 = 23,
|
DODGE_NEON_2003 = 23,
|
||||||
|
MIATA_1994_SPAGS = 24,
|
||||||
|
|
||||||
ET_UNUSED = 24,
|
ET_UNUSED = 25,
|
||||||
|
|
||||||
Force_4b_engine_type = ENUM_SIZE_HACK,
|
Force_4b_engine_type = ENUM_SIZE_HACK,
|
||||||
} engine_type_e;
|
} engine_type_e;
|
||||||
|
|
|
@ -528,7 +528,7 @@ void testTriggerDecoder(void) {
|
||||||
|
|
||||||
testTriggerDecoder2("testMitsu", MITSU_4G93, 3, 0.3750, 0.3889);
|
testTriggerDecoder2("testMitsu", MITSU_4G93, 3, 0.3750, 0.3889);
|
||||||
// testTriggerDecoder2("miata 1990", MIATA_1990, 0, 0.6280, 0.0);
|
// testTriggerDecoder2("miata 1990", MIATA_1990, 0, 0.6280, 0.0);
|
||||||
testTriggerDecoder2("miata 1994", MIATA_1994, 11, 0.2917, 0.3716);
|
testTriggerDecoder2("miata 1994", MIATA_1994_DEVIATOR, 11, 0.2917, 0.3716);
|
||||||
testTriggerDecoder2("citroen", CITROEN_TU3JP, 0, 0.4833, 0.0);
|
testTriggerDecoder2("citroen", CITROEN_TU3JP, 0, 0.4833, 0.0);
|
||||||
|
|
||||||
printGapRatio = true;
|
printGapRatio = true;
|
||||||
|
|
Loading…
Reference in New Issue