From 612a4ab3b3daf7388d86fcbf4624ae50f4650491 Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 3 Sep 2019 23:35:49 -0400 Subject: [PATCH] MRE NB2 --- firmware/config/engines/mazda_miata_vvt.cpp | 8 ++++---- firmware/controllers/trigger/trigger_decoder.cpp | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/firmware/config/engines/mazda_miata_vvt.cpp b/firmware/config/engines/mazda_miata_vvt.cpp index 2b0a010d93..4cbbef5443 100644 --- a/firmware/config/engines/mazda_miata_vvt.cpp +++ b/firmware/config/engines/mazda_miata_vvt.cpp @@ -552,14 +552,14 @@ void setMiataNB2_MRE(DECLARE_CONFIG_PARAMETER_SIGNATURE) { // set tps_max 540 engineConfiguration->tpsMax = 870; - - + CONFIGB(useETBforIdleControl) = true; + engineConfiguration->throttlePedalUpVoltage = 1; + // WAT? that's an interesting value, how come it's above 5v? + engineConfiguration->throttlePedalWOTVoltage = 5.47; // set vbatt_divider 11 // 0.3#4 has wrong R139 as well? // 56k high side/10k low side multiplied by above analogInputDividerCoefficient = 11 engineConfiguration->vbattDividerCoeff = (66.0f / 10.0f) * engineConfiguration->analogInputDividerCoefficient; - - } diff --git a/firmware/controllers/trigger/trigger_decoder.cpp b/firmware/controllers/trigger/trigger_decoder.cpp index 334c915f5d..5cd7920058 100644 --- a/firmware/controllers/trigger/trigger_decoder.cpp +++ b/firmware/controllers/trigger/trigger_decoder.cpp @@ -4,6 +4,12 @@ * @date Dec 24, 2013 * @author Andrey Belomutskiy, (c) 2012-2019 * + * + * + * enable trigger_details + * DBG_TRIGGER_SYNC = 16 + * set debug_mode 16 + * * This file is part of rusEfi - see http://rusefi.com * * rusEfi is free software; you can redistribute it and/or modify it under the terms of