diff --git a/firmware/controllers/algo/engine.cpp b/firmware/controllers/algo/engine.cpp index c1b27e5116..0aad3add45 100644 --- a/firmware/controllers/algo/engine.cpp +++ b/firmware/controllers/algo/engine.cpp @@ -190,9 +190,6 @@ void Engine::reset() { * so that we can prepare some helper structures */ void Engine::preCalculate(DECLARE_ENGINE_PARAMETER_SIGNATURE) { - sparkTable.preCalc(engineConfiguration->sparkDwellRpmBins, - engineConfiguration->sparkDwellValues); - #if HAL_USE_ADC adcToVoltageInputDividerCoefficient = adcToVolts(1) * engineConfiguration->analogInputDividerCoefficient; #else diff --git a/firmware/controllers/algo/engine.h b/firmware/controllers/algo/engine.h index 5654764c94..4d7480f19c 100644 --- a/firmware/controllers/algo/engine.h +++ b/firmware/controllers/algo/engine.h @@ -283,12 +283,6 @@ public: */ uint32_t engineCycleEventCount = 0; - /** - * fast spark dwell time interpolation helper - * todo: finish the implementation and - */ - Table2D sparkTable; - /** * fast kg/hour MAF decoding lookup table with ~0.2 volt step * This table is build based on MAF decoding curve diff --git a/firmware/util/containers/table_helper.h b/firmware/util/containers/table_helper.h index 504ed750df..24d4cf6937 100644 --- a/firmware/util/containers/table_helper.h +++ b/firmware/util/containers/table_helper.h @@ -36,6 +36,7 @@ private: float multiplier; }; +/* template class Table2D { public: @@ -45,7 +46,6 @@ public: float bTable[SIZE]; float *bin; }; - template Table2D::Table2D() { bin = NULL; @@ -69,7 +69,7 @@ void Table2D::preCalc(float *bin, float *values) { bTable[i] = y1 - aTable[i] * x1; } } - +*/ template void Map3D::init(vType table[RPM_BIN_SIZE][LOAD_BIN_SIZE],