TS cleanup pass (#1225)

* remove biquad config

* fuel pump clarity

* one code usage

* minimal generate for ci

* and don't build it either

* remove commented out code
This commit is contained in:
Matthew Kennedy 2020-03-25 20:00:17 -07:00 committed by GitHub
parent 9ba4279264
commit 8642a0a6c7
5 changed files with 12 additions and 28 deletions

View File

@ -265,12 +265,6 @@ void setDodgeNeonNGCEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
engineConfiguration->specs.displacement = 1.996; engineConfiguration->specs.displacement = 1.996;
engineConfiguration->specs.cylindersCount = 4; engineConfiguration->specs.cylindersCount = 4;
engineConfiguration->biQuad.a0 = 0.0000024635293743901;
engineConfiguration->biQuad.a1 = 0.00000492705874878021;
engineConfiguration->biQuad.a2 = 0.0000024635293743901;
engineConfiguration->biQuad.b1 = -1.9968534854;
engineConfiguration->biQuad.b2 = 0.9968633396;
/** /**
* 77C * 77C
* 1200 rpm * 1200 rpm

View File

@ -42,8 +42,6 @@
#define ADC_BUF_DEPTH_SLOW 8 #define ADC_BUF_DEPTH_SLOW 8
#define ADC_BUF_DEPTH_FAST 4 #define ADC_BUF_DEPTH_FAST 4
//static Biquad biq[ADC_MAX_CHANNELS_COUNT];
static adc_channel_mode_e adcHwChannelEnabled[HW_MAX_ADC_INDEX]; static adc_channel_mode_e adcHwChannelEnabled[HW_MAX_ADC_INDEX];
static const char * adcHwChannelUsage[HW_MAX_ADC_INDEX]; static const char * adcHwChannelUsage[HW_MAX_ADC_INDEX];

View File

@ -309,14 +309,6 @@ float[VBAT_INJECTOR_CURVE_SIZE] battLagCorr;ms delay between injector open and c
end_struct end_struct
struct bi_quard_s
float a0;;"v", 1, 0, -1000, 1000, 9
float a1;;"v", 1, 0, -1000, 1000, 9
float a2;;"v", 1, 0, -1000, 1000, 9
float b1;;"v", 1, 0, -1000, 1000, 9
float b2;;"v", 1, 0, -1000, 1000, 9
end_struct
injector_s injector injector_s injector
@ -330,7 +322,7 @@ bit activateAuxPid3;
bit isVerboseAuxPid3; bit isVerboseAuxPid3;
bit activateAuxPid4; bit activateAuxPid4;
bit isVerboseAuxPid4; bit isVerboseAuxPid4;
bit useBiQuadAnalogFiltering; bit unused76b9;
bit cj125isUaDivided;+Is your UA CJ125 output wired to MCU via resistor divider? bit cj125isUaDivided;+Is your UA CJ125 output wired to MCU via resistor divider?
bit cj125isLsu49; bit cj125isLsu49;
bit etb_use_two_wires; bit etb_use_two_wires;
@ -1049,7 +1041,7 @@ float[MAP_ACCEL_TAPER] mapAccelTaperMult;;"mult", 1, 0, 0.0, 300,
float[NARROW_BAND_WIDE_BAND_CONVERSION_SIZE] narrowToWideOxygenBins;Narrow Band WBO Approximation;"V", 1, 0, -10.0, 10.0, 3 float[NARROW_BAND_WIDE_BAND_CONVERSION_SIZE] narrowToWideOxygenBins;Narrow Band WBO Approximation;"V", 1, 0, -10.0, 10.0, 3
float[NARROW_BAND_WIDE_BAND_CONVERSION_SIZE] narrowToWideOxygen;;"ratio", 1, 0, -40.0, 40.0, 2 float[NARROW_BAND_WIDE_BAND_CONVERSION_SIZE] narrowToWideOxygen;;"ratio", 1, 0, -40.0, 40.0, 2
vvt_mode_e vvtMode;set vvt_mode X vvt_mode_e vvtMode;set vvt_mode X
bi_quard_s biQuad; uint8_t[20] unusedOldBiquad
float[CLT_TIMING_CURVE_SIZE] cltTimingBins;CLT-based timing correction;"C", 1, 0, -100.0, 250.0, 1 float[CLT_TIMING_CURVE_SIZE] cltTimingBins;CLT-based timing correction;"C", 1, 0, -100.0, 250.0, 1
float[CLT_TIMING_CURVE_SIZE] cltTimingExtra;;"degree", 1, 0, -400.0, 400.0, 0 float[CLT_TIMING_CURVE_SIZE] cltTimingExtra;;"degree", 1, 0, -400.0, 400.0, 0
int nbVvtIndex;;"index", 1, 0, 0, 4.0, 0 int nbVvtIndex;;"index", 1, 0, 0, 4.0, 0

View File

@ -1101,7 +1101,7 @@ menuDialog = main
# Digital outputs # Digital outputs
subMenu = mainRelay, "Main relay" subMenu = mainRelay, "Main relay"
subMenu = starterRelay, "Starter Disable relay" subMenu = starterRelay, "Starter Disable relay"
subMenu = fuelPump, "Fuel rail" subMenu = fuelPump, "Fuel pump & rail"
subMenu = fanSetting, "Fan" subMenu = fanSetting, "Fan"
subMenu = tachSettings, "Tachometer" subMenu = tachSettings, "Tachometer"
subMenu = malfunction, "Check engine light" subMenu = malfunction, "Check engine light"
@ -2060,13 +2060,20 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "On temperature", fanOnTemperature field = "On temperature", fanOnTemperature
field = "Off temperature", fanOffTemperature field = "Off temperature", fanOffTemperature
dialog = fuelPump, "Fuel Rail" dialog = fuelPumpConfig, "Fuel Pump"
field = "Pin", fuelPumpPin field = "Pin", fuelPumpPin
field = "Pin mode", fuelPumpPinMode field = "Pin mode", fuelPumpPinMode
field = "Prime duration", startUpFuelPumpDuration field = "Prime duration", startUpFuelPumpDuration
dialog = fuelRailConfig, "Fuel Rail"
field = "Absolute Fuel Pressure", absoluteFuelPressure field = "Absolute Fuel Pressure", absoluteFuelPressure
field = "Fuel Rail pressure", fuelRailPressure, {absoluteFuelPressure == 1} field = "Fuel Rail pressure", fuelRailPressure, {absoluteFuelPressure == 1}
dialog = fuelPump, ""
panel = fuelPumpConfig
panel = fuelRailConfig
; Controller->Actuator Outputs ; Controller->Actuator Outputs
dialog = mainRelay, "Main relay output" dialog = mainRelay, "Main relay output"
field = "Pin", mainRelayPin field = "Pin", mainRelayPin
@ -2232,13 +2239,7 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "!ECU reboot needed to apply these settings" field = "!ECU reboot needed to apply these settings"
field = "Use fixed baro corr from MAP", useFixedBaroCorrFromMap field = "Use fixed baro corr from MAP", useFixedBaroCorrFromMap
field = "Analog divider ratio", analogInputDividerCoefficient@@if_ts_show_analog_divider field = "Analog divider ratio", analogInputDividerCoefficient@@if_ts_show_analog_divider
field = "Use BiQuad averaging", useBiQuadAnalogFiltering field = "Smoothing factor", slowAdcAlpha
field = "Smoothing factor", slowAdcAlpha, {useBiQuadAnalogFiltering == 0}
field = "Bi_Q a0", biQuad_a0, {useBiQuadAnalogFiltering == 1}
field = "Bi_Q a1", biQuad_a1, {useBiQuadAnalogFiltering == 1}
field = "Bi_Q a2", biQuad_a2, {useBiQuadAnalogFiltering == 1}
field = "Bi_Q b1", biQuad_b1, {useBiQuadAnalogFiltering == 1}
field = "Bi_Q b2", biQuad_b2, {useBiQuadAnalogFiltering == 1}
dialog = tachSettings, "Tachometer output" dialog = tachSettings, "Tachometer output"
field = "!See also dizzySparkOutputPin" field = "!See also dizzySparkOutputPin"

View File

@ -15,7 +15,6 @@ UTILSRC_CPP = \
$(UTIL_DIR)/math/pid.cpp \ $(UTIL_DIR)/math/pid.cpp \
$(UTIL_DIR)/math/avg_values.cpp \ $(UTIL_DIR)/math/avg_values.cpp \
$(UTIL_DIR)/math/interpolation.cpp \ $(UTIL_DIR)/math/interpolation.cpp \
$(UTIL_DIR)/math/biquad.cpp \
$(PROJECT_DIR)/util/datalogging.cpp \ $(PROJECT_DIR)/util/datalogging.cpp \
$(PROJECT_DIR)/util/loggingcentral.cpp \ $(PROJECT_DIR)/util/loggingcentral.cpp \
$(PROJECT_DIR)/util/cli_registry.cpp \ $(PROJECT_DIR)/util/cli_registry.cpp \