From 4c41220c21409c53f4514eabbdc0b0c75a00f570 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 10 Apr 2020 20:31:58 -0400 Subject: [PATCH] progress --- firmware/config/engines/mazda_miata_vvt.h | 13 +++++++++++++ firmware/controllers/settings.cpp | 5 +++++ 2 files changed, 18 insertions(+) diff --git a/firmware/config/engines/mazda_miata_vvt.h b/firmware/config/engines/mazda_miata_vvt.h index a9462cfc02..cc72460947 100644 --- a/firmware/config/engines/mazda_miata_vvt.h +++ b/firmware/config/engines/mazda_miata_vvt.h @@ -14,9 +14,22 @@ void setMazdaMiataNbInjectorLag(DECLARE_CONFIG_PARAMETER_SIGNATURE); void setMazdaMiataNbTpsTps(DECLARE_CONFIG_PARAMETER_SIGNATURE); +/** + * Primary rusEfi test mule https://rusefi.com/forum/viewtopic.php?f=3&t=1095 + * MAZDA_MIATA_2003 + * set engine_type 47 + */ void setMazdaMiata2003EngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE); +/** + * race car - NA body and fuel system with NB2 engine + */ void setMazdaMiata2003EngineConfigurationNaFuelRail(DECLARE_CONFIG_PARAMETER_SIGNATURE); void setMazdaMiata2003EngineConfigurationBoardTest(DECLARE_CONFIG_PARAMETER_SIGNATURE); void setMiataNB2_MRE_ETB(DECLARE_CONFIG_PARAMETER_SIGNATURE); + +/** + * OEM mechanical throttle body + * set engine_type 11 + */ void setMiataNB2_MRE_MTB(DECLARE_CONFIG_PARAMETER_SIGNATURE); diff --git a/firmware/controllers/settings.cpp b/firmware/controllers/settings.cpp index ec020483ca..4a29682c1e 100644 --- a/firmware/controllers/settings.cpp +++ b/firmware/controllers/settings.cpp @@ -687,6 +687,10 @@ static void setCj125HeaterPin(const char *pinName) { setIndividualPin(pinName, &engineConfiguration->wboHeaterPin, "cj125 heater"); } +static void setTriggerSyncPin(const char *pinName) { + setIndividualPin(pinName, &engineConfiguration->debugTriggerSync, "trigger sync"); +} + static void setStarterRelayPin(const char *pinName) { setIndividualPin(pinName, &engineConfiguration->starterRelayDisablePin, "starter disable relay"); } @@ -1441,6 +1445,7 @@ void initSettings(void) { addConsoleActionS("set_starter_relay_pin", setStarterRelayPin); addConsoleActionS("set_cj125_cs_pin", setCj125CsPin); addConsoleActionS("set_cj125_heater_pin", setCj125HeaterPin); + addConsoleActionS("set_trigger_sync_pin", setTriggerSyncPin); addConsoleActionS("set_can_rx_pin", setCanRxPin); addConsoleActionS("set_can_tx_pin", setCanTxPin);