Skip to content

Commit

Permalink
MRE nor Frankenstein for Miata do not exist, also Frankenso method in…
Browse files Browse the repository at this point in the history
…line
  • Loading branch information
rusefillc committed Jan 16, 2024
1 parent 5ef42e6 commit 7533031
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 77 deletions.
68 changes: 0 additions & 68 deletions firmware/config/engines/mazda_miata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,35 +72,6 @@ static const uint8_t miataNA8_maf_advance_table[16][16] = { {/*0 engineLoad=1.2
+29, /*12 5760.0*/+28, /*13 6173.0*/+28, /*14 6586.0*/+27, /*15 7000.0*/+27 } };
#endif

static void commonMiataNa() {
engineConfiguration->trigger.type = trigger_type_e::TT_MAZDA_MIATA_NA;
engineConfiguration->engineChartSize = 100;

engineConfiguration->triggerInputPins[0] = Gpio::C6; // 2G YEL/BLU
engineConfiguration->triggerInputPins[1] = Gpio::A5; // 2E White CKP

engineConfiguration->ignitionMode = IM_WASTED_SPARK;

engineConfiguration->idle.solenoidFrequency = 160;

// Frankenstein: high side #1 is PE8
// Frankenstein: high side #2 is PE10
// Frankenstein: high side #3 is PE12
// Frankenstein: high side #4 is PE14
// Frankenstein: high side #5 is PC9
// Frankenstein: high side #6 is PC7

engineConfiguration->ignitionPins[0] = Gpio::E12; // Frankenstein: high side #3
engineConfiguration->ignitionPins[1] = Gpio::E14; // Frankenstein: high side #4
engineConfiguration->ignitionPins[2] = Gpio::Unassigned;
engineConfiguration->ignitionPins[3] = Gpio::Unassigned;

engineConfiguration->cranking.baseFuel = 24;

setCommonNTCSensor(&engineConfiguration->clt, 2700);
setCommonNTCSensor(&engineConfiguration->iat, 2700);
}

void common079721_2351() {

engineConfiguration->engineChartSize = 300;
Expand Down Expand Up @@ -132,42 +103,3 @@ void common079721_2351() {
engineConfiguration->clt.adcChannel = EFI_ADC_11;

}

/**
* Tom tomiata, Frankenstein board
*/
void setFrankensteinMiata1996() {
commonMiataNa();
engineConfiguration->displacement = 1.839;

#if IGN_LOAD_COUNT == DEFAULT_IGN_LOAD_COUNT
copyTable(config->ignitionTable, miataNA8_maf_advance_table);
#endif

// upside down
engineConfiguration->triggerInputPins[0] = Gpio::A5;
engineConfiguration->triggerInputPins[1] = Gpio::C6;

engineConfiguration->fuelPumpPin = Gpio::E4;
engineConfiguration->idle.solenoidPin = Gpio::E5;

engineConfiguration->mafAdcChannel = EFI_ADC_1;
engineConfiguration->clt.adcChannel = EFI_ADC_11;
engineConfiguration->tps1_1AdcChannel = EFI_ADC_13;

engineConfiguration->ignitionPins[0] = Gpio::E12; // Frankenstein: high side #3
engineConfiguration->ignitionPins[1] = Gpio::Unassigned;
engineConfiguration->ignitionPins[2] = Gpio::E14; // Frankenstein: high side #4
engineConfiguration->ignitionPins[3] = Gpio::Unassigned;

// harness is sequential but we have a limited board
engineConfiguration->crankingInjectionMode = IM_BATCH;
engineConfiguration->injectionMode = IM_BATCH;

engineConfiguration->injectionPins[0] = Gpio::B9; // Frankenstein: low side - out #12
engineConfiguration->injectionPins[1] = Gpio::B8; // Frankenstein: low side - out #11
engineConfiguration->injectionPins[2] = Gpio::Unassigned;
engineConfiguration->injectionPins[3] = Gpio::Unassigned;
engineConfiguration->injectionPins[4] = Gpio::Unassigned;
engineConfiguration->injectionPins[5] = Gpio::Unassigned;
}
1 change: 0 additions & 1 deletion firmware/config/engines/mazda_miata.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@
#include "engine_configuration.h"

void common079721_2351();
void setFrankensteinMiata1996();
2 changes: 0 additions & 2 deletions firmware/config/engines/mazda_miata_1_6.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
*/
void setMiataNA6_MAP_Frankenso();

void setMiataNA6_MAP_MRE();

void miataNAcommonEngineSettings();

/**
Expand Down
6 changes: 1 addition & 5 deletions firmware/controllers/algo/engine_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,6 @@ void resetConfigurationExt(configuration_callback_t boardCallback, engine_type_e
break;
case engine_type_e::ET_UNUSED_20:
case engine_type_e::ET_UNUSED_66:
setMiataNA6_MAP_MRE();
break;
case engine_type_e::MRE_BODY_CONTROL:
mreBCM();
break;
Expand Down Expand Up @@ -861,9 +859,7 @@ void resetConfigurationExt(configuration_callback_t boardCallback, engine_type_e
case engine_type_e::FORD_ESCORT_GT:
setFordEscortGt();
break;
case engine_type_e::MIATA_1996:
setFrankensteinMiata1996();
break;
case engine_type_e::ET_UNUSED_21:
case engine_type_e::CITROEN_TU3JP:
setCitroenBerlingoTU3JPConfiguration();
break;
Expand Down
2 changes: 1 addition & 1 deletion firmware/controllers/algo/engine_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ enum class engine_type_e : uint32_t {
// Frankenso board
FRANKENSO_MIATA_NA6_MAP = 41,
ET_UNUSED_20 = 20,
MIATA_1996 = 21,
ET_UNUSED_21 = 21,

FORD_ESCORT_GT = 14,

Expand Down

0 comments on commit 7533031

Please sign in to comment.