no bins
This commit is contained in:
parent
51804a4eb9
commit
2ba340bce4
|
@ -21,9 +21,6 @@
|
||||||
EXTERN_CONFIG;
|
EXTERN_CONFIG;
|
||||||
|
|
||||||
static void setDefault139qmbMaps(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
static void setDefault139qmbMaps(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||||
|
|
||||||
setFuelLoadBin(1.2, 4.4 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
setFuelRpmBin(1000, 11000 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
setTimingLoadBin(1.2, 4.4 PASS_CONFIG_PARAMETER_SUFFIX);
|
setTimingLoadBin(1.2, 4.4 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
setTimingRpmBin(1000, 11000 PASS_CONFIG_PARAMETER_SUFFIX);
|
setTimingRpmBin(1000, 11000 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,8 +75,6 @@ void setCitroenBerlingoTU3JPConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||||
* Algorithm Alpha-N setting
|
* Algorithm Alpha-N setting
|
||||||
*/
|
*/
|
||||||
setAlgorithm(LM_ALPHA_N_2 PASS_CONFIG_PARAMETER_SUFFIX);
|
setAlgorithm(LM_ALPHA_N_2 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
setFuelLoadBin(0, 100 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
setFuelRpmBin(800, 7000 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
setTimingRpmBin(800, 7000 PASS_CONFIG_PARAMETER_SUFFIX);
|
setTimingRpmBin(800, 7000 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -255,7 +255,6 @@ void setDodgeNeonNGCEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||||
*/
|
*/
|
||||||
engineConfiguration->injector.flow = 199;
|
engineConfiguration->injector.flow = 199;
|
||||||
|
|
||||||
setFuelLoadBin(0, 100 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
setLinearCurve(config->ignitionLoadBins, 20, 120, 1);
|
setLinearCurve(config->ignitionLoadBins, 20, 120, 1);
|
||||||
|
|
||||||
setAlgorithm(LM_SPEED_DENSITY PASS_CONFIG_PARAMETER_SUFFIX);
|
setAlgorithm(LM_SPEED_DENSITY PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
|
|
|
@ -43,9 +43,6 @@ static const ignition_table_t default_aspire_timing_table = {
|
||||||
EXTERN_CONFIG;
|
EXTERN_CONFIG;
|
||||||
|
|
||||||
static void setDefaultAspireMaps(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
static void setDefaultAspireMaps(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||||
|
|
||||||
setFuelLoadBin(1.2, 4.4 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
setFuelRpmBin(800, 7000 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
setTimingLoadBin(1.2, 4.4 PASS_CONFIG_PARAMETER_SUFFIX);
|
setTimingLoadBin(1.2, 4.4 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
setTimingRpmBin(800, 7000 PASS_CONFIG_PARAMETER_SUFFIX);
|
setTimingRpmBin(800, 7000 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
|
|
|
@ -82,9 +82,6 @@ void setFordEscortGt(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||||
engineConfiguration->specs.displacement = 1.839;
|
engineConfiguration->specs.displacement = 1.839;
|
||||||
setAlgorithm(LM_SPEED_DENSITY PASS_CONFIG_PARAMETER_SUFFIX);
|
setAlgorithm(LM_SPEED_DENSITY PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
setFuelLoadBin(1.2, 4.4 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
setFuelRpmBin(800, 7000 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
|
|
||||||
static const float veRpmBins[] =
|
static const float veRpmBins[] =
|
||||||
{
|
{
|
||||||
800,
|
800,
|
||||||
|
|
|
@ -37,9 +37,6 @@ static const ignition_table_t default_custom_timing_table = {
|
||||||
EXTERN_CONFIG;
|
EXTERN_CONFIG;
|
||||||
|
|
||||||
static void setDefaultCustomMaps(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
static void setDefaultCustomMaps(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||||
|
|
||||||
setFuelLoadBin(0,100 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
setFuelRpmBin(0, 7000 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
setTimingLoadBin(0,100 PASS_CONFIG_PARAMETER_SUFFIX);
|
setTimingLoadBin(0,100 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
setTimingRpmBin(0,7000 PASS_CONFIG_PARAMETER_SUFFIX);
|
setTimingRpmBin(0,7000 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,6 @@ static void setHondaAccordConfigurationCommon(DECLARE_CONFIG_PARAMETER_SIGNATURE
|
||||||
engineConfiguration->injector.flow = 248;
|
engineConfiguration->injector.flow = 248;
|
||||||
|
|
||||||
setAlgorithm(LM_SPEED_DENSITY PASS_CONFIG_PARAMETER_SUFFIX);
|
setAlgorithm(LM_SPEED_DENSITY PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
setFuelLoadBin(0, 100 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
|
|
||||||
buildTimingMap(35 PASS_CONFIG_PARAMETER_SUFFIX);
|
buildTimingMap(35 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,6 @@ void setMazda626EngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||||
engineConfiguration->tpsMax = 764;
|
engineConfiguration->tpsMax = 764;
|
||||||
|
|
||||||
setAlgorithm(LM_SPEED_DENSITY PASS_CONFIG_PARAMETER_SUFFIX);
|
setAlgorithm(LM_SPEED_DENSITY PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
setFuelLoadBin(0, 100 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
|
|
||||||
// set_whole_timing_map 10
|
// set_whole_timing_map 10
|
||||||
setWholeTimingTable_d(10 PASS_CONFIG_PARAMETER_SUFFIX);
|
setWholeTimingTable_d(10 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
|
|
|
@ -92,8 +92,6 @@ static void commonMiataNa(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||||
engineConfiguration->triggerInputPins[1] = GPIOA_5; // 2E White CKP
|
engineConfiguration->triggerInputPins[1] = GPIOA_5; // 2E White CKP
|
||||||
|
|
||||||
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
|
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
|
||||||
setFuelLoadBin(1.2, 4.4 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
setFuelRpmBin(800, 7000 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
|
|
||||||
engineConfiguration->idle.solenoidFrequency = 160;
|
engineConfiguration->idle.solenoidFrequency = 160;
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,6 @@ void setSachs(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||||
engineConfiguration->fuelPumpPin = GPIOE_6;
|
engineConfiguration->fuelPumpPin = GPIOE_6;
|
||||||
|
|
||||||
// todo: extract a method? figure out something smarter
|
// todo: extract a method? figure out something smarter
|
||||||
setFuelRpmBin(800, 15000 PASS_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
setTimingRpmBin(800, 15000 PASS_CONFIG_PARAMETER_SUFFIX);
|
setTimingRpmBin(800, 15000 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||||
setLinearCurve(config->veRpmBins, 15000, 7000, 1);
|
setLinearCurve(config->veRpmBins, 15000, 7000, 1);
|
||||||
setLinearCurve(config->afrRpmBins, 15000, 7000, 1);
|
setLinearCurve(config->afrRpmBins, 15000, 7000, 1);
|
||||||
|
|
|
@ -417,14 +417,6 @@ void prepareOutputSignals(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
TRIGGER_WAVEFORM(prepareShape());
|
TRIGGER_WAVEFORM(prepareShape());
|
||||||
}
|
}
|
||||||
|
|
||||||
void setFuelRpmBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX) {
|
|
||||||
setLinearCurve(config->fuelRpmBins, from, to);
|
|
||||||
}
|
|
||||||
|
|
||||||
void setFuelLoadBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX) {
|
|
||||||
setLinearCurve(config->fuelLoadBins, from, to);
|
|
||||||
}
|
|
||||||
|
|
||||||
void setTimingRpmBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX) {
|
void setTimingRpmBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX) {
|
||||||
setRpmBin(config->ignitionRpmBins, IGN_RPM_COUNT, from, to);
|
setRpmBin(config->ignitionRpmBins, IGN_RPM_COUNT, from, to);
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,8 +59,6 @@ void prepareIgnitionPinIndices(ignition_mode_e ignitionMode DECLARE_ENGINE_PARAM
|
||||||
|
|
||||||
int getCylinderId(int index DECLARE_ENGINE_PARAMETER_SUFFIX);
|
int getCylinderId(int index DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
void setFuelRpmBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
void setFuelLoadBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX);
|
|
||||||
void setTimingRpmBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX);
|
void setTimingRpmBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX);
|
||||||
void setTimingLoadBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX);
|
void setTimingLoadBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue