refactoring
This commit is contained in:
parent
9563c2f664
commit
6a002beb8f
|
@ -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
|
||||
|
|
|
@ -283,12 +283,6 @@ public:
|
|||
*/
|
||||
uint32_t engineCycleEventCount = 0;
|
||||
|
||||
/**
|
||||
* fast spark dwell time interpolation helper
|
||||
* todo: finish the implementation and
|
||||
*/
|
||||
Table2D<DWELL_CURVE_SIZE> sparkTable;
|
||||
|
||||
/**
|
||||
* fast kg/hour MAF decoding lookup table with ~0.2 volt step
|
||||
* This table is build based on MAF decoding curve
|
||||
|
|
|
@ -36,6 +36,7 @@ private:
|
|||
float multiplier;
|
||||
};
|
||||
|
||||
/*
|
||||
template<int SIZE>
|
||||
class Table2D {
|
||||
public:
|
||||
|
@ -45,7 +46,6 @@ public:
|
|||
float bTable[SIZE];
|
||||
float *bin;
|
||||
};
|
||||
|
||||
template<int SIZE>
|
||||
Table2D<SIZE>::Table2D() {
|
||||
bin = NULL;
|
||||
|
@ -69,7 +69,7 @@ void Table2D<SIZE>::preCalc(float *bin, float *values) {
|
|||
bTable[i] = y1 - aTable[i] * x1;
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
template<int RPM_BIN_SIZE, int LOAD_BIN_SIZE, typename vType>
|
||||
void Map3D<RPM_BIN_SIZE, LOAD_BIN_SIZE, vType>::init(vType table[RPM_BIN_SIZE][LOAD_BIN_SIZE],
|
||||
|
|
Loading…
Reference in New Issue