better method name
This commit is contained in:
parent
2a3d067821
commit
8d14561fb9
|
@ -15,7 +15,7 @@
|
|||
EXTERN_CONFIG;
|
||||
|
||||
void setCamaro4(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
|
||||
setAlgorithm(LM_SPEED_DENSITY PASS_CONFIG_PARAMETER_SUFFIX);
|
||||
|
|
|
@ -80,9 +80,8 @@ void disableLCD(board_configuration_s *boardConfiguration) {
|
|||
boardConfiguration->HD44780_db7 = GPIO_UNASSIGNED;
|
||||
}
|
||||
|
||||
// todo: should this be renamed to 'setFrankensoConfiguration'?
|
||||
// todo: should this be part of more default configurations?
|
||||
void setCustomEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
void setFrankensoConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
engineConfiguration->trigger.type = TT_ONE_PLUS_ONE;
|
||||
|
||||
setFrankenso_01_LCD(boardConfiguration);
|
||||
|
@ -192,7 +191,7 @@ void setCustomEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
}
|
||||
|
||||
void setFrankensoBoardTestConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
engineConfiguration->directSelfStimulation = true; // this engine type is used for board validation
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include "engine_configuration.h"
|
||||
|
||||
void setCustomEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
void setFrankensoConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
void setFrankenso_01_LCD(board_configuration_s *boardConfiguration);
|
||||
void disableLCD(board_configuration_s *boardConfiguration);
|
||||
void runSchedulingPrecisionTestIfNeeded(void);
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
EXTERN_CONFIG;
|
||||
|
||||
void setDodgeRam1996(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
setOperationMode(engineConfiguration, FOUR_STROKE_CAM_SENSOR);
|
||||
engineConfiguration->trigger.type = TT_DODGE_RAM;
|
||||
|
|
|
@ -11,5 +11,5 @@
|
|||
EXTERN_CONFIG;
|
||||
|
||||
void setEngineTemplateConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
EXTERN_CONFIG;
|
||||
|
||||
void setGeoStormConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
EXTERN_CONFIG;
|
||||
|
||||
void setLadaKalina(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
disableLCD(boardConfiguration);
|
||||
|
||||
boardConfiguration->HD44780_rs = GPIO_UNASSIGNED;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
EXTERN_CONFIG;
|
||||
|
||||
void setMazda626EngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
setOperationMode(engineConfiguration, FOUR_STROKE_CRANK_SENSOR);
|
||||
// engineConfiguration->trigger.type = TT_TOOTHED_WHEEL_60_2;
|
||||
|
|
|
@ -125,8 +125,8 @@ void miataNAcommon(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
|
||||
}
|
||||
|
||||
void setMiataNA6_MAP_Configuration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
void setMiataNA6_MAP_Frankenso(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
boardConfiguration->isHip9011Enabled = false;
|
||||
boardConfiguration->isSdCardEnabled = false;
|
||||
|
@ -273,8 +273,8 @@ void setMiataNA6_MAP_Configuration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
copyFuelTable(miataNA6_maf_fuel_table, config->fuelTable);
|
||||
}
|
||||
|
||||
void setMiataNA6_VAF_Configuration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setMiataNA6_MAP_Configuration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
void setMiataNA6_VAF_Frankenso(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setMiataNA6_MAP_Frankenso(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
engineConfiguration->fuelAlgorithm = LM_PLAIN_MAF;
|
||||
|
||||
/**
|
||||
|
@ -283,3 +283,7 @@ void setMiataNA6_VAF_Configuration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
engineConfiguration->tps1_1AdcChannel = EFI_ADC_NONE;
|
||||
// todo: MAF-based ignition table?
|
||||
}
|
||||
|
||||
void setMiataNA6_VAF_MRE(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
|
||||
}
|
||||
|
|
|
@ -10,8 +10,10 @@
|
|||
|
||||
#include "engine_configuration.h"
|
||||
|
||||
void setMiataNA6_VAF_Configuration(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
void setMiataNA6_MAP_Configuration(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
void setMiataNA6_VAF_Frankenso(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
void setMiataNA6_MAP_Frankenso(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
void miataNAcommon(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
void setMiataNA6_VAF_MRE(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
#endif /* CONFIG_ENGINES_MAZDA_MIATA_1_6_H_ */
|
||||
|
|
|
@ -19,7 +19,7 @@ EXTERN_CONFIG;
|
|||
* See also setMiataNA_1_6_Configuration
|
||||
*/
|
||||
void setMazdaMiataNA8Configuration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
// blue jumper wire to W45 bottom jumper, not OEM
|
||||
engineConfiguration->map.sensor.hwChannel = EFI_ADC_7;
|
||||
|
|
|
@ -238,7 +238,7 @@ void setMazdaMiataNbInjectorLag(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
}
|
||||
|
||||
void setMazdaMiata2003EngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
engineConfiguration->trigger.type = TT_MIATA_VVT;
|
||||
setOperationMode(engineConfiguration, FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR);
|
||||
|
@ -387,7 +387,7 @@ void setMazdaMiata2003EngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
// Frankenso analog #6 pin 3R, W56 (5th lower row pin from the end) top <> W45 bottom jumper, not OEM
|
||||
|
||||
|
||||
// see setCustomEngineConfiguration
|
||||
// see setFrankensoConfiguration
|
||||
// map.sensor.hwChannel = EFI_ADC_0; W53
|
||||
|
||||
engineConfiguration->map.sensor.type = MT_GM_3_BAR;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
EXTERN_CONFIG;
|
||||
|
||||
static void common2jz(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE); // default pinout
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE); // default pinout
|
||||
|
||||
engineConfiguration->specs.displacement = 3.0;
|
||||
engineConfiguration->specs.cylindersCount = 6;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
EXTERN_CONFIG;
|
||||
|
||||
void setVwAba(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
setWholeTimingTable_d(20 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||
// set cranking_timing_angle 10
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
EXTERN_CONFIG;
|
||||
|
||||
void setZil130(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
engineConfiguration->specs.cylindersCount = 8;
|
||||
|
||||
|
|
|
@ -1048,7 +1048,7 @@ void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_EN
|
|||
switch (engineType) {
|
||||
case DEFAULT_FRANKENSO:
|
||||
setDefaultFrankensoConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
setCustomEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setFrankensoConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
break;
|
||||
case MRE_MIATA_NA6:
|
||||
case ACURA_RSX:
|
||||
|
@ -1101,11 +1101,11 @@ void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_EN
|
|||
break;
|
||||
case MIATA_NA6_MAP:
|
||||
setDefaultFrankensoConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
setMiataNA6_MAP_Configuration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setMiataNA6_MAP_Frankenso(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
break;
|
||||
case MIATA_NA6_VAF:
|
||||
setDefaultFrankensoConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
setMiataNA6_VAF_Configuration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
setMiataNA6_VAF_Frankenso(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
break;
|
||||
case ETB_BENCH_ENGINE:
|
||||
setDefaultFrankensoConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
|
Loading…
Reference in New Issue