only:dead stuff
This commit is contained in:
parent
e1d29141dc
commit
e9f1f20d1b
|
@ -100,9 +100,6 @@ void setEngineBMW_M73_microRusEfi() {
|
|||
|
||||
engineConfiguration->trigger.type = trigger_type_e::TT_TOOTHED_WHEEL_60_2;
|
||||
|
||||
//set tps_min 891
|
||||
engineConfiguration->tpsMin = 891;
|
||||
//set tps_max 177
|
||||
engineConfiguration->tpsMax = 177;
|
||||
|
||||
}
|
||||
|
|
|
@ -271,10 +271,8 @@ void setFrankensoBoardTestConfiguration() {
|
|||
// set engine_type 58
|
||||
void setEtbTestConfiguration() {
|
||||
// VAG test ETB
|
||||
// set tps_min 54
|
||||
engineConfiguration->tpsMin = 54;
|
||||
// by the way this ETB has default position of ADC=74 which is about 4%
|
||||
// set tps_max 540
|
||||
engineConfiguration->tpsMax = 540;
|
||||
|
||||
// yes, 30K - that's a test configuration
|
||||
|
@ -1011,7 +1009,7 @@ void testEngine6451() {
|
|||
engineConfiguration->trigger.type = trigger_type_e::TT_NARROW_SINGLE_TOOTH;
|
||||
|
||||
setWholeTimingTable(30);
|
||||
setWholeIgnitionIatCorr(0);
|
||||
setTable(config->ignitionIatCorrTable, 0);
|
||||
engineConfiguration->cylindersCount = 6;
|
||||
engineConfiguration->firingOrder = FO_1_5_3_6_2_4;
|
||||
engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS;
|
||||
|
|
|
@ -860,9 +860,7 @@ static const float boschBiasValues[] = {
|
|||
};
|
||||
|
||||
void setBoschVAGETB() {
|
||||
// set tps_min 890
|
||||
engineConfiguration->tpsMin = 890; // convert 12to10 bit (ADC/4)
|
||||
// set tps_max 70
|
||||
engineConfiguration->tpsMax = 70; // convert 12to10 bit (ADC/4)
|
||||
|
||||
engineConfiguration->tps1SecondaryMin = 102;
|
||||
|
|
|
@ -227,10 +227,6 @@ void setConstantDwell(floatms_t dwellMs) {
|
|||
setArrayValues(config->sparkDwellValues, dwellMs);
|
||||
}
|
||||
|
||||
void setWholeIgnitionIatCorr(float value) {
|
||||
setTable(config->ignitionIatCorrTable, value);
|
||||
}
|
||||
|
||||
void setFuelTablesLoadBin(float minValue, float maxValue) {
|
||||
setLinearCurve(config->injPhaseLoadBins, minValue, maxValue, 1);
|
||||
setLinearCurve(config->veLoadBins, minValue, maxValue, 1);
|
||||
|
|
|
@ -33,7 +33,6 @@ void setTwoStrokeOperationMode();
|
|||
|
||||
void prepareVoidConfiguration(engine_configuration_s *activeConfiguration);
|
||||
void setTargetRpmCurve(int rpm);
|
||||
void setWholeIgnitionIatCorr(float value);
|
||||
void setFuelTablesLoadBin(float minValue, float maxValue);
|
||||
void setWholeIatCorrTimingTable(float value);
|
||||
void setWholeTimingTable(angle_t value);
|
||||
|
|
|
@ -271,7 +271,6 @@ static void setIgnitionMode(int value) {
|
|||
engineConfiguration->ignitionMode = (ignition_mode_e) value;
|
||||
incrementGlobalConfigurationVersion();
|
||||
prepareOutputSignals();
|
||||
doPrintConfiguration();
|
||||
#endif // EFI_ENGINE_CONTROL
|
||||
}
|
||||
|
||||
|
@ -295,25 +294,12 @@ static void setWholeTimingMap(float value) {
|
|||
setTable(config->ignitionTable, value);
|
||||
}
|
||||
|
||||
static void setWholePhaseMapCmd(float value) {
|
||||
efiPrintf("Setting whole injection phase map to %.2f", value);
|
||||
setTable(config->injectionPhase, value);
|
||||
}
|
||||
|
||||
static void setWholeTimingMapCmd(float value) {
|
||||
efiPrintf("Setting whole timing advance map to %.2f", value);
|
||||
setWholeTimingMap(value);
|
||||
engine->resetEngineSnifferIfInTestMode();
|
||||
}
|
||||
|
||||
static void setWholeVeCmd(float value) {
|
||||
efiPrintf("Setting whole VE map to %.2f", value);
|
||||
if (engineConfiguration->fuelAlgorithm != LM_SPEED_DENSITY) {
|
||||
efiPrintf("WARNING: setting VE map not in SD mode is pointless");
|
||||
}
|
||||
setTable(config->veTable, value);
|
||||
engine->resetEngineSnifferIfInTestMode();
|
||||
}
|
||||
#endif // EFI_ENGINE_CONTROL
|
||||
|
||||
#if EFI_PROD_CODE
|
||||
|
@ -395,30 +381,10 @@ static void setIdlePin(const char *pinName) {
|
|||
setIndividualPin(pinName, &engineConfiguration->idle.solenoidPin, "idle");
|
||||
}
|
||||
|
||||
static void setMainRelayPin(const char *pinName) {
|
||||
setIndividualPin(pinName, &engineConfiguration->mainRelayPin, "main relay");
|
||||
}
|
||||
|
||||
static void setTriggerSyncPin(const char *pinName) {
|
||||
setIndividualPin(pinName, &engineConfiguration->debugTriggerSync, "trigger sync");
|
||||
}
|
||||
|
||||
static void setStarterRelayPin(const char *pinName) {
|
||||
setIndividualPin(pinName, &engineConfiguration->starterRelayDisablePin, "starter disable relay");
|
||||
}
|
||||
|
||||
static void setAlternatorPin(const char *pinName) {
|
||||
setIndividualPin(pinName, &engineConfiguration->alternatorControlPin, "alternator");
|
||||
}
|
||||
|
||||
static void setACRelayPin(const char *pinName) {
|
||||
setIndividualPin(pinName, &engineConfiguration->acRelayPin, "A/C");
|
||||
}
|
||||
|
||||
static void setFuelPumpPin(const char *pinName) {
|
||||
setIndividualPin(pinName, &engineConfiguration->fuelPumpPin, "fuelPump");
|
||||
}
|
||||
|
||||
static void setInjectionPin(const char *indexStr, const char *pinName) {
|
||||
int index = atoi(indexStr) - 1; // convert from human index into software index
|
||||
if (index < 0 || index >= MAX_CYLINDER_COUNT)
|
||||
|
@ -777,10 +743,6 @@ static void setValue(const char *paramStr, const char *valueStr) {
|
|||
setConstantDwell(valueF);
|
||||
} else if (strEqualCaseInsensitive(paramStr, CMD_ENGINESNIFFERRPMTHRESHOLD)) {
|
||||
engineConfiguration->engineSnifferRpmThreshold = valueI;
|
||||
} else if (strEqualCaseInsensitive(paramStr, "tps_max")) {
|
||||
engineConfiguration->tpsMax = valueI;
|
||||
} else if (strEqualCaseInsensitive(paramStr, "tps_min")) {
|
||||
engineConfiguration->tpsMin = valueI;
|
||||
#if EFI_EMULATE_POSITION_SENSORS
|
||||
} else if (strEqualCaseInsensitive(paramStr, CMD_RPM)) {
|
||||
setTriggerEmulatorRPM(valueI);
|
||||
|
@ -844,10 +806,7 @@ void initSettings() {
|
|||
// used by HW CI
|
||||
addConsoleAction(CMD_INDIVIDUAL_INJECTION, setIndividualCoilsIgnition);
|
||||
addConsoleAction("showconfig", doPrintConfiguration);
|
||||
addConsoleActionF("set_whole_phase_map", setWholePhaseMapCmd);
|
||||
addConsoleActionF("set_whole_timing_map", setWholeTimingMapCmd);
|
||||
addConsoleActionF("set_whole_ve_map", setWholeVeCmd);
|
||||
addConsoleActionF("set_whole_ign_corr_map", setWholeIgnitionIatCorr);
|
||||
#endif // EFI_ENGINE_CONTROL
|
||||
|
||||
addConsoleAction("stopengine", (Void) scheduleStopEngine);
|
||||
|
@ -871,13 +830,8 @@ void initSettings() {
|
|||
|
||||
addConsoleActionI(CMD_ECU_UNLOCK, unlockEcu);
|
||||
|
||||
addConsoleActionS("set_fuel_pump_pin", setFuelPumpPin);
|
||||
addConsoleActionS("set_acrelay_pin", setACRelayPin);
|
||||
addConsoleActionS(CMD_ALTERNATOR_PIN, setAlternatorPin);
|
||||
addConsoleActionS(CMD_IDLE_PIN, setIdlePin);
|
||||
addConsoleActionS("set_main_relay_pin", setMainRelayPin);
|
||||
addConsoleActionS("set_starter_relay_pin", setStarterRelayPin);
|
||||
addConsoleActionS("set_trigger_sync_pin", setTriggerSyncPin);
|
||||
|
||||
addConsoleActionS("bench_clearpin", benchClearPin);
|
||||
addConsoleActionS("bench_setpin", benchSetPin);
|
||||
|
|
Loading…
Reference in New Issue