From e733782920c8086caeee4db456ebb4f41739f00d Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 14 Sep 2022 00:34:04 -0400 Subject: [PATCH] i suspect that no one cares about these --- firmware/console/binary/output_channels.txt | 3 --- firmware/controllers/algo/engine.h | 3 --- firmware/controllers/engine_cycle/main_trigger_callback.cpp | 3 --- firmware/controllers/engine_cycle/spark_logic.cpp | 2 -- 4 files changed, 11 deletions(-) diff --git a/firmware/console/binary/output_channels.txt b/firmware/console/binary/output_channels.txt index b1e8973065..9b1c3965cb 100644 --- a/firmware/console/binary/output_channels.txt +++ b/firmware/console/binary/output_channels.txt @@ -299,9 +299,6 @@ uint16_t rpmAcceleration;dRPM;"RPM/s",1, 0, 0, 5, 0 uint16_t autoscale instantMAPValue;Instant MAP;"kPa",{1/@@PACK_MULT_PRESSURE@@}, 0, 0, 655, 2 - uint16_t mostRecentTimeBetweenSparkEvents;;"", 1, 0, -10000, 10000, 3 - uint16_t mostRecentTimeBetweenIgnitionEvents;;"", 1, 0, -10000, 10000, 3 - uint16_t maxLockedDuration;;"us", 1, 0, 0, 65535, 0 uint8_t maxTriggerReentrant;;"", 1, 0, 0, 100, 0 diff --git a/firmware/controllers/algo/engine.h b/firmware/controllers/algo/engine.h index 7b1d220298..74ccaad228 100644 --- a/firmware/controllers/algo/engine.h +++ b/firmware/controllers/algo/engine.h @@ -200,9 +200,6 @@ public: FanControl1 fan1; FanControl2 fan2; - efitick_t mostRecentSparkEvent; - efitick_t mostRecentIgnitionEvent; - PrimaryTriggerConfiguration primaryTriggerConfiguration; #if CAMS_PER_BANK == 1 VvtTriggerConfiguration vvtTriggerConfiguration[CAMS_PER_BANK] = {{"VVT1 ", 0}}; diff --git a/firmware/controllers/engine_cycle/main_trigger_callback.cpp b/firmware/controllers/engine_cycle/main_trigger_callback.cpp index 5f7d502be9..c745fdc6a9 100644 --- a/firmware/controllers/engine_cycle/main_trigger_callback.cpp +++ b/firmware/controllers/engine_cycle/main_trigger_callback.cpp @@ -88,9 +88,6 @@ void turnInjectionPinHigh(InjectionEvent *event) { void turnInjectionPinLow(InjectionEvent *event) { efitick_t nowNt = getTimeNowNt(); - engine->outputChannels.mostRecentTimeBetweenIgnitionEvents = nowNt - engine->mostRecentIgnitionEvent; - engine->mostRecentIgnitionEvent = nowNt; - event->isScheduled = false; for (int i = 0;ioutputs[i]; diff --git a/firmware/controllers/engine_cycle/spark_logic.cpp b/firmware/controllers/engine_cycle/spark_logic.cpp index 71d56d2de9..91a4065e41 100644 --- a/firmware/controllers/engine_cycle/spark_logic.cpp +++ b/firmware/controllers/engine_cycle/spark_logic.cpp @@ -40,8 +40,6 @@ int isIgnitionTimingError(void) { static void fireSparkBySettingPinLow(IgnitionEvent *event, IgnitionOutputPin *output) { efitick_t nowNt = getTimeNowNt(); - engine->outputChannels.mostRecentTimeBetweenSparkEvents = nowNt - engine->mostRecentSparkEvent; - engine->mostRecentSparkEvent = nowNt; #if SPARK_EXTREME_LOGGING efiPrintf("spark goes low %d %s %d current=%d cnt=%d id=%d", getRevolutionCounter(), output->name, (int)getTimeNowUs(),