From 3b8ab4f6a7335ef0590888b71b1e61c1abc35f19 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Mon, 1 Jan 2018 22:24:33 -0500 Subject: [PATCH] happy new year nissan! --- .../controllers/trigger/decoders/trigger_nissan.cpp | 10 +++++----- firmware/rusefi.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/firmware/controllers/trigger/decoders/trigger_nissan.cpp b/firmware/controllers/trigger/decoders/trigger_nissan.cpp index 3d3733d85e..e92110a85d 100644 --- a/firmware/controllers/trigger/decoders/trigger_nissan.cpp +++ b/firmware/controllers/trigger/decoders/trigger_nissan.cpp @@ -21,7 +21,7 @@ static void initializeNissanSR20VE_4_optional_360(TriggerShape *s, bool with2nd s->tdcPosition = 630; - float w = 5; + float width = 4; s->setTriggerSynchronizationGap2(9.67 * 0.75, 16); float left = 0; @@ -30,7 +30,7 @@ static void initializeNissanSR20VE_4_optional_360(TriggerShape *s, bool with2nd int total = 360; // 360 on cam, over 720 crank degree float base = 180; - right = base - 15; + right = base - 4 * width; if (with2nd) { addSkippedToothTriggerEvents(T_SECONDARY, s, total, 0, 0.5, 0, 720, @@ -52,7 +52,7 @@ static void initializeNissanSR20VE_4_optional_360(TriggerShape *s, bool with2nd base += 180; left = right; - right = base - w; + right = base - width; if (with2nd) { // addSkippedToothTriggerEvents(T_SECONDARY, s, total, 0, 0.5, 0, 720, // left, right PASS_ENGINE_PARAMETER_SUFFIX); @@ -69,7 +69,7 @@ static void initializeNissanSR20VE_4_optional_360(TriggerShape *s, bool with2nd base += 180; left = right; - right = base - w; + right = base - width; if (with2nd) { // addSkippedToothTriggerEvents(T_SECONDARY, s, total, 0, 0.5, 0, 720, // left, right PASS_ENGINE_PARAMETER_SUFFIX); @@ -86,7 +86,7 @@ static void initializeNissanSR20VE_4_optional_360(TriggerShape *s, bool with2nd base += 180; left = right; - right = base - w; + right = base - width; s->addEvent2(right, T_PRIMARY, TV_RISE PASS_ENGINE_PARAMETER_SUFFIX); left = right; diff --git a/firmware/rusefi.cpp b/firmware/rusefi.cpp index 401744cbbc..da9207c463 100644 --- a/firmware/rusefi.cpp +++ b/firmware/rusefi.cpp @@ -263,5 +263,5 @@ int getRusEfiVersion(void) { if (initBootloader() != 0) return 123; #endif /* EFI_BOOTLOADER_INCLUDE_CODE */ - return 20171227; + return 20180101; }