From 335a154a5aaaac8e263eb8ff41898bcdf46fbe91 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Sun, 21 Jul 2019 20:11:12 -0400 Subject: [PATCH] miata NA6 progress --- firmware/config/engines/mazda_miata_1_6.cpp | 4 ++++ firmware/controllers/actuators/idle_thread.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/config/engines/mazda_miata_1_6.cpp b/firmware/config/engines/mazda_miata_1_6.cpp index 3083b66955..a1172c7ca5 100644 --- a/firmware/config/engines/mazda_miata_1_6.cpp +++ b/firmware/config/engines/mazda_miata_1_6.cpp @@ -262,6 +262,10 @@ void setMiataNA6_MAP_Configuration(DECLARE_CONFIG_PARAMETER_SIGNATURE) { boardConfiguration->clutchDownPin = GPIOA_3; boardConfiguration->clutchDownPinMode = PI_PULLUP; + + // 110mm red wire from 1N/W14 to bottom of W45 + engineConfiguration->throttlePedalUpPin = GPIOA_7; + // green wire from 1Q/W17 to bottom of W46 engineConfiguration->acSwitchAdc = EFI_ADC_6; // PA6 diff --git a/firmware/controllers/actuators/idle_thread.cpp b/firmware/controllers/actuators/idle_thread.cpp index f62a271563..fe207e8bb2 100644 --- a/firmware/controllers/actuators/idle_thread.cpp +++ b/firmware/controllers/actuators/idle_thread.cpp @@ -503,7 +503,7 @@ void startIdleThread(Logging*sharedLogger) { } if (CONFIG(throttlePedalUpPin) != GPIO_UNASSIGNED) { - efiSetPadMode("clutch up switch", CONFIG(throttlePedalUpPin), + efiSetPadMode("throttle pedal up switch", CONFIG(throttlePedalUpPin), getInputMode(CONFIGB(throttlePedalUpPinMode))); }