From 55b763f62e3124c5c3093f901d8063a07293dcfc Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 26 Nov 2020 20:26:12 -0500 Subject: [PATCH] dead engine config --- firmware/config/engines/mazda_miata.cpp | 20 ------------------- firmware/config/engines/mazda_miata.h | 1 - .../controllers/algo/engine_configuration.cpp | 4 +--- 3 files changed, 1 insertion(+), 24 deletions(-) diff --git a/firmware/config/engines/mazda_miata.cpp b/firmware/config/engines/mazda_miata.cpp index fe6e18832d..39b98cff0d 100644 --- a/firmware/config/engines/mazda_miata.cpp +++ b/firmware/config/engines/mazda_miata.cpp @@ -247,26 +247,6 @@ static void setMiata1994_common(DECLARE_CONFIG_PARAMETER_SIGNATURE) { // end of 1994 commond } -/** - * Frankenso board - * set engine_type 20 - */ -void setMiata1994_d(DECLARE_CONFIG_PARAMETER_SIGNATURE) { - setMiata1994_common(PASS_CONFIG_PARAMETER_SIGNATURE); - - engineConfiguration->vbattDividerCoeff = ((float) (8.2 + 33)) / 8.2 * 2; - /** - * This board was avoiding PE0 & PE1 mosfets altogether - */ - engineConfiguration->injectionPins[0] = GPIOD_7; // avoiding PE1 - engineConfiguration->injectionPins[1] = GPIOE_2; - engineConfiguration->injectionPins[2] = GPIOB_8; - engineConfiguration->injectionPins[3] = GPIOB_7; - - // todo: add the diode? change idle valve logic? - engineConfiguration->idle.solenoidPin = GPIO_UNASSIGNED; -} - /** * Tom tomiata, Frankenstein board */ diff --git a/firmware/config/engines/mazda_miata.h b/firmware/config/engines/mazda_miata.h index 0062bd5702..754144c310 100644 --- a/firmware/config/engines/mazda_miata.h +++ b/firmware/config/engines/mazda_miata.h @@ -15,5 +15,4 @@ void common079721_2351(DECLARE_CONFIG_PARAMETER_SIGNATURE); void setMiata1990(DECLARE_CONFIG_PARAMETER_SIGNATURE); -void setMiata1994_d(DECLARE_CONFIG_PARAMETER_SIGNATURE); void setMiata1996(DECLARE_CONFIG_PARAMETER_SIGNATURE); diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index 19bdb6a489..6e543e7a67 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -1168,6 +1168,7 @@ void resetConfigurationExt(Logging * logger, configuration_callback_t boardCallb // todo: is it time to replace MICRO_RUS_EFI, PROTEUS, PROMETHEUS_DEFAULTS with MINIMAL_PINS? maybe rename MINIMAL_PINS to DEFAULT? case PROTEUS: case PROMETHEUS_DEFAULTS: + case MIATA_1994_DEVIATOR: case MINIMAL_PINS: // all basic settings are already set in prepareVoidConfiguration(), no need to set anything here // nothing to do - we do it all in setBoardConfigurationOverrides @@ -1311,9 +1312,6 @@ void resetConfigurationExt(Logging * logger, configuration_callback_t boardCallb case MIATA_1990: setMiata1990(PASS_CONFIG_PARAMETER_SIGNATURE); break; - case MIATA_1994_DEVIATOR: - setMiata1994_d(PASS_CONFIG_PARAMETER_SIGNATURE); - break; case MIATA_1996: setMiata1996(PASS_CONFIG_PARAMETER_SIGNATURE); break;