remove
This commit is contained in:
parent
b403e62bd7
commit
dbad10a253
|
@ -725,8 +725,6 @@ const char *getEngine_load_mode_e(engine_load_mode_e value){
|
|||
switch(value) {
|
||||
case Force_4_bytes_size_engine_load_mode:
|
||||
return "Force_4_bytes_size_engine_load_mode";
|
||||
case LM_ALPHA_N:
|
||||
return "LM_ALPHA_N";
|
||||
case LM_PLAIN_MAF:
|
||||
return "LM_PLAIN_MAF";
|
||||
case LM_REAL_MAF:
|
||||
|
|
|
@ -428,10 +428,6 @@ typedef enum {
|
|||
* raw Mass Air Flow sensor value algorithm. http://en.wikipedia.org/wiki/Mass_flow_sensor
|
||||
*/
|
||||
LM_PLAIN_MAF = 0,
|
||||
/**
|
||||
* Throttle Position Sensor value is used as engine load. http://en.wikipedia.org/wiki/Throttle_position_sensor
|
||||
*/
|
||||
LM_ALPHA_N = 1,
|
||||
/**
|
||||
* Speed Density algorithm - Engine Load is a function of MAP, VE and target AFR
|
||||
* http://articles.sae.org/8539/
|
||||
|
|
|
@ -74,7 +74,6 @@ float getEngineLoadT(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
return getMafVoltage(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
case LM_SPEED_DENSITY:
|
||||
return getMap(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
case LM_ALPHA_N:
|
||||
case LM_ALPHA_N_2:
|
||||
return Sensor::get(SensorType::Tps1).value_or(0);
|
||||
case LM_REAL_MAF:
|
||||
|
@ -446,9 +445,7 @@ void setTimingLoadBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX) {
|
|||
*/
|
||||
void setAlgorithm(engine_load_mode_e algo DECLARE_CONFIG_PARAMETER_SUFFIX) {
|
||||
engineConfiguration->fuelAlgorithm = algo;
|
||||
if (algo == LM_ALPHA_N) {
|
||||
setTimingLoadBin(20, 120 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||
} else if (algo == LM_SPEED_DENSITY) {
|
||||
if (algo == LM_SPEED_DENSITY) {
|
||||
setLinearCurve(config->ignitionLoadBins, 20, 120, 3);
|
||||
buildTimingMap(35 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||
}
|
||||
|
|
|
@ -355,7 +355,6 @@ enable2ndByteCanID = false
|
|||
|
||||
; todo: generate this section programatically
|
||||
LM_PLAIN_MAF = {0},
|
||||
LM_ALPHA_N = {1},
|
||||
LM_SPEED_DENSITY = {3},
|
||||
LM_REAL_MAF = {4}
|
||||
|
||||
|
@ -1517,7 +1516,6 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
|
|||
[UserDefined]
|
||||
dialog = fuelTableBottomDialog, "", card
|
||||
panel = fuelTableMAFTbl, Center, {fuelAlgorithm==LM_PLAIN_MAF}
|
||||
panel = fuelTableTPSTbl, Center, {fuelAlgorithm==LM_ALPHA_N}
|
||||
panel = fuelTableELTbl, Center
|
||||
|
||||
dialog = fuelTableRight, "", yAxis
|
||||
|
|
Loading…
Reference in New Issue