Auto-generated configs and docs
This commit is contained in:
parent
5f23bbba68
commit
84301b1f39
|
@ -146,7 +146,7 @@ static plain_get_float_s getF_plain[] = {
|
|||
|
||||
plain_get_float_s * findFloat(const char *name) {
|
||||
plain_get_float_s *currentF = &getF_plain[0];
|
||||
while (currentF < getF_plain + sizeof(getF_plain)/sizeof(getF_plain[0])) {
|
||||
while (currentF < getF_plain + efi::size(getF_plain)) {
|
||||
if (strEqualCaseInsensitive(name, currentF->token)) {
|
||||
return currentF;
|
||||
}
|
||||
|
@ -846,6 +846,13 @@ float getConfigValueByName(const char *name) {
|
|||
return EFI_ERROR_CODE;
|
||||
}
|
||||
void setConfigValueByName(const char *name, float value) {
|
||||
{
|
||||
plain_get_float_s * known = findFloat(name);
|
||||
if (known != nullptr) {
|
||||
*(float*)hackEngineConfigurationPointer(known->value) = value;
|
||||
}
|
||||
}
|
||||
|
||||
if (strEqualCaseInsensitive(name, "sensorSnifferRpmThreshold"))
|
||||
{
|
||||
engineConfiguration->sensorSnifferRpmThreshold = (int)value;
|
||||
|
@ -896,11 +903,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->multisparkMaxExtraSparkCount = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "injector.flow"))
|
||||
{
|
||||
engineConfiguration->injector.flow = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "isForcedInduction"))
|
||||
{
|
||||
engineConfiguration->isForcedInduction = (int)value;
|
||||
|
@ -1076,21 +1078,11 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->tpsErrorDetectionTooHigh = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "cranking.baseFuel"))
|
||||
{
|
||||
engineConfiguration->cranking.baseFuel = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "cranking.rpm"))
|
||||
{
|
||||
engineConfiguration->cranking.rpm = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "ignitionDwellForCrankingMs"))
|
||||
{
|
||||
engineConfiguration->ignitionDwellForCrankingMs = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "etbRevLimitStart"))
|
||||
{
|
||||
engineConfiguration->etbRevLimitStart = (int)value;
|
||||
|
@ -1101,86 +1093,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->etbRevLimitRange = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "map.sensor.lowValue"))
|
||||
{
|
||||
engineConfiguration->map.sensor.lowValue = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "map.sensor.highValue"))
|
||||
{
|
||||
engineConfiguration->map.sensor.highValue = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "clt.config.tempC_1"))
|
||||
{
|
||||
engineConfiguration->clt.config.tempC_1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "clt.config.tempC_2"))
|
||||
{
|
||||
engineConfiguration->clt.config.tempC_2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "clt.config.tempC_3"))
|
||||
{
|
||||
engineConfiguration->clt.config.tempC_3 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "clt.config.resistance_1"))
|
||||
{
|
||||
engineConfiguration->clt.config.resistance_1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "clt.config.resistance_2"))
|
||||
{
|
||||
engineConfiguration->clt.config.resistance_2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "clt.config.resistance_3"))
|
||||
{
|
||||
engineConfiguration->clt.config.resistance_3 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "clt.config.bias_resistor"))
|
||||
{
|
||||
engineConfiguration->clt.config.bias_resistor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "iat.config.tempC_1"))
|
||||
{
|
||||
engineConfiguration->iat.config.tempC_1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "iat.config.tempC_2"))
|
||||
{
|
||||
engineConfiguration->iat.config.tempC_2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "iat.config.tempC_3"))
|
||||
{
|
||||
engineConfiguration->iat.config.tempC_3 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "iat.config.resistance_1"))
|
||||
{
|
||||
engineConfiguration->iat.config.resistance_1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "iat.config.resistance_2"))
|
||||
{
|
||||
engineConfiguration->iat.config.resistance_2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "iat.config.resistance_3"))
|
||||
{
|
||||
engineConfiguration->iat.config.resistance_3 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "iat.config.bias_resistor"))
|
||||
{
|
||||
engineConfiguration->iat.config.bias_resistor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "launchTimingRetard"))
|
||||
{
|
||||
engineConfiguration->launchTimingRetard = (int)value;
|
||||
|
@ -1191,31 +1103,11 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->hip9011PrescalerAndSDO = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "knockBandCustom"))
|
||||
{
|
||||
engineConfiguration->knockBandCustom = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "specs.displacement"))
|
||||
{
|
||||
engineConfiguration->specs.displacement = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "specs.cylindersCount"))
|
||||
{
|
||||
engineConfiguration->specs.cylindersCount = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "cylinderBore"))
|
||||
{
|
||||
engineConfiguration->cylinderBore = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "crankingTimingAngle"))
|
||||
{
|
||||
engineConfiguration->crankingTimingAngle = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "gapTrackingLengthOverride"))
|
||||
{
|
||||
engineConfiguration->gapTrackingLengthOverride = (int)value;
|
||||
|
@ -1231,41 +1123,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->minOilPressureAfterStart = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "fixedModeTiming"))
|
||||
{
|
||||
engineConfiguration->fixedModeTiming = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "globalTriggerAngleOffset"))
|
||||
{
|
||||
engineConfiguration->globalTriggerAngleOffset = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "analogInputDividerCoefficient"))
|
||||
{
|
||||
engineConfiguration->analogInputDividerCoefficient = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "vbattDividerCoeff"))
|
||||
{
|
||||
engineConfiguration->vbattDividerCoeff = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "fanOnTemperature"))
|
||||
{
|
||||
engineConfiguration->fanOnTemperature = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "fanOffTemperature"))
|
||||
{
|
||||
engineConfiguration->fanOffTemperature = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "driveWheelRevPerKm"))
|
||||
{
|
||||
engineConfiguration->driveWheelRevPerKm = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "canSleepPeriodMs"))
|
||||
{
|
||||
engineConfiguration->canSleepPeriodMs = (int)value;
|
||||
|
@ -1286,11 +1143,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->HD44780height = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idle_derivativeFilterLoss"))
|
||||
{
|
||||
engineConfiguration->idle_derivativeFilterLoss = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "trailingSparkAngle"))
|
||||
{
|
||||
engineConfiguration->trailingSparkAngle = (int)value;
|
||||
|
@ -1331,61 +1183,11 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->boostControlSafeDutyCycle = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "globalFuelCorrection"))
|
||||
{
|
||||
engineConfiguration->globalFuelCorrection = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "adcVcc"))
|
||||
{
|
||||
engineConfiguration->adcVcc = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "mapCamDetectionAnglePosition"))
|
||||
{
|
||||
engineConfiguration->mapCamDetectionAnglePosition = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "afr.v1"))
|
||||
{
|
||||
engineConfiguration->afr.v1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "afr.value1"))
|
||||
{
|
||||
engineConfiguration->afr.value1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "afr.v2"))
|
||||
{
|
||||
engineConfiguration->afr.v2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "afr.value2"))
|
||||
{
|
||||
engineConfiguration->afr.value2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "baroSensor.lowValue"))
|
||||
{
|
||||
engineConfiguration->baroSensor.lowValue = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "baroSensor.highValue"))
|
||||
{
|
||||
engineConfiguration->baroSensor.highValue = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idle.solenoidFrequency"))
|
||||
{
|
||||
engineConfiguration->idle.solenoidFrequency = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "manIdlePosition"))
|
||||
{
|
||||
engineConfiguration->manIdlePosition = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "knockRetardAggression"))
|
||||
{
|
||||
engineConfiguration->knockRetardAggression = (int)value;
|
||||
|
@ -1421,11 +1223,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->triggerSimulatorFrequency = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idle_antiwindupFreq"))
|
||||
{
|
||||
engineConfiguration->idle_antiwindupFreq = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "acIdleExtraOffset"))
|
||||
{
|
||||
engineConfiguration->acIdleExtraOffset = (int)value;
|
||||
|
@ -1466,11 +1263,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->tunerStudioSerialSpeed = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "compressionRatio"))
|
||||
{
|
||||
engineConfiguration->compressionRatio = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "is_enabled_spi_1"))
|
||||
{
|
||||
engineConfiguration->is_enabled_spi_1 = (int)value;
|
||||
|
@ -1871,21 +1663,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->verboseCan2 = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "boostPid.pFactor"))
|
||||
{
|
||||
engineConfiguration->boostPid.pFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "boostPid.iFactor"))
|
||||
{
|
||||
engineConfiguration->boostPid.iFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "boostPid.dFactor"))
|
||||
{
|
||||
engineConfiguration->boostPid.dFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "boostPid.offset"))
|
||||
{
|
||||
engineConfiguration->boostPid.offset = (int)value;
|
||||
|
@ -1946,11 +1723,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->launchTpsTreshold = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "launchActivateDelay"))
|
||||
{
|
||||
engineConfiguration->launchActivateDelay = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "stft.maxIdleRegionRpm"))
|
||||
{
|
||||
engineConfiguration->stft.maxIdleRegionRpm = (int)value;
|
||||
|
@ -2286,11 +2058,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->engineChartSize = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "turboSpeedSensorMultiplier"))
|
||||
{
|
||||
engineConfiguration->turboSpeedSensorMultiplier = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "acIdleRpmBump"))
|
||||
{
|
||||
engineConfiguration->acIdleRpmBump = (int)value;
|
||||
|
@ -2301,61 +2068,16 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->warningPeriod = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "knockDetectionWindowStart"))
|
||||
{
|
||||
engineConfiguration->knockDetectionWindowStart = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "knockDetectionWindowEnd"))
|
||||
{
|
||||
engineConfiguration->knockDetectionWindowEnd = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleStepperReactionTime"))
|
||||
{
|
||||
engineConfiguration->idleStepperReactionTime = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleStepperTotalSteps"))
|
||||
{
|
||||
engineConfiguration->idleStepperTotalSteps = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "noAccelAfterHardLimitPeriodSecs"))
|
||||
{
|
||||
engineConfiguration->noAccelAfterHardLimitPeriodSecs = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "mapAveragingSchedulingAtIndex"))
|
||||
{
|
||||
engineConfiguration->mapAveragingSchedulingAtIndex = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tachPulseDuractionMs"))
|
||||
{
|
||||
engineConfiguration->tachPulseDuractionMs = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "wwaeTau"))
|
||||
{
|
||||
engineConfiguration->wwaeTau = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "alternatorControl.pFactor"))
|
||||
{
|
||||
engineConfiguration->alternatorControl.pFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "alternatorControl.iFactor"))
|
||||
{
|
||||
engineConfiguration->alternatorControl.iFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "alternatorControl.dFactor"))
|
||||
{
|
||||
engineConfiguration->alternatorControl.dFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "alternatorControl.offset"))
|
||||
{
|
||||
engineConfiguration->alternatorControl.offset = (int)value;
|
||||
|
@ -2376,21 +2098,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->alternatorControl.maxValue = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "etb.pFactor"))
|
||||
{
|
||||
engineConfiguration->etb.pFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "etb.iFactor"))
|
||||
{
|
||||
engineConfiguration->etb.iFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "etb.dFactor"))
|
||||
{
|
||||
engineConfiguration->etb.dFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "etb.offset"))
|
||||
{
|
||||
engineConfiguration->etb.offset = (int)value;
|
||||
|
@ -2426,16 +2133,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->tachPulsePerRev = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "mapErrorDetectionTooLow"))
|
||||
{
|
||||
engineConfiguration->mapErrorDetectionTooLow = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "mapErrorDetectionTooHigh"))
|
||||
{
|
||||
engineConfiguration->mapErrorDetectionTooHigh = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "multisparkSparkDuration"))
|
||||
{
|
||||
engineConfiguration->multisparkSparkDuration = (int)value;
|
||||
|
@ -2446,21 +2143,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->multisparkDwell = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid.pFactor"))
|
||||
{
|
||||
engineConfiguration->idleRpmPid.pFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid.iFactor"))
|
||||
{
|
||||
engineConfiguration->idleRpmPid.iFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid.dFactor"))
|
||||
{
|
||||
engineConfiguration->idleRpmPid.dFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid.offset"))
|
||||
{
|
||||
engineConfiguration->idleRpmPid.offset = (int)value;
|
||||
|
@ -2481,21 +2163,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->idleRpmPid.maxValue = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "wwaeBeta"))
|
||||
{
|
||||
engineConfiguration->wwaeBeta = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "throttlePedalUpVoltage"))
|
||||
{
|
||||
engineConfiguration->throttlePedalUpVoltage = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "throttlePedalWOTVoltage"))
|
||||
{
|
||||
engineConfiguration->throttlePedalWOTVoltage = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "startUpFuelPumpDuration"))
|
||||
{
|
||||
engineConfiguration->startUpFuelPumpDuration = (int)value;
|
||||
|
@ -2506,16 +2173,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->idlePidRpmDeadZone = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "targetVBatt"))
|
||||
{
|
||||
engineConfiguration->targetVBatt = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "alternatorOffAboveTps"))
|
||||
{
|
||||
engineConfiguration->alternatorOffAboveTps = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "afterCrankingIACtaperDuration"))
|
||||
{
|
||||
engineConfiguration->afterCrankingIACtaperDuration = (int)value;
|
||||
|
@ -2546,11 +2203,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->noFuelTrimAfterDfcoTime = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tpsAccelEnrichmentThreshold"))
|
||||
{
|
||||
engineConfiguration->tpsAccelEnrichmentThreshold = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "totalGearsCount"))
|
||||
{
|
||||
engineConfiguration->totalGearsCount = (int)value;
|
||||
|
@ -2561,36 +2213,11 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->uartConsoleSerialSpeed = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tpsDecelEnleanmentThreshold"))
|
||||
{
|
||||
engineConfiguration->tpsDecelEnleanmentThreshold = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tpsDecelEnleanmentMultiplier"))
|
||||
{
|
||||
engineConfiguration->tpsDecelEnleanmentMultiplier = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "slowAdcAlpha"))
|
||||
{
|
||||
engineConfiguration->slowAdcAlpha = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxSerialSpeed"))
|
||||
{
|
||||
engineConfiguration->auxSerialSpeed = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "throttlePedalSecondaryUpVoltage"))
|
||||
{
|
||||
engineConfiguration->throttlePedalSecondaryUpVoltage = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "throttlePedalSecondaryWOTVoltage"))
|
||||
{
|
||||
engineConfiguration->throttlePedalSecondaryWOTVoltage = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "mc33_hpfp_i_peak"))
|
||||
{
|
||||
engineConfiguration->mc33_hpfp_i_peak = (int)value;
|
||||
|
@ -2631,56 +2258,11 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->benchTestOnTime = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "boostCutPressure"))
|
||||
{
|
||||
engineConfiguration->boostCutPressure = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "fixedTiming"))
|
||||
{
|
||||
engineConfiguration->fixedTiming = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "mapLowValueVoltage"))
|
||||
{
|
||||
engineConfiguration->mapLowValueVoltage = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "mapHighValueVoltage"))
|
||||
{
|
||||
engineConfiguration->mapHighValueVoltage = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "egoValueShift"))
|
||||
{
|
||||
engineConfiguration->egoValueShift = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "crankingIACposition"))
|
||||
{
|
||||
engineConfiguration->crankingIACposition = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tChargeMinRpmMinTps"))
|
||||
{
|
||||
engineConfiguration->tChargeMinRpmMinTps = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tChargeMinRpmMaxTps"))
|
||||
{
|
||||
engineConfiguration->tChargeMinRpmMaxTps = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tChargeMaxRpmMinTps"))
|
||||
{
|
||||
engineConfiguration->tChargeMaxRpmMinTps = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tChargeMaxRpmMaxTps"))
|
||||
{
|
||||
engineConfiguration->tChargeMaxRpmMaxTps = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "fan1ExtraIdle"))
|
||||
{
|
||||
engineConfiguration->fan1ExtraIdle = (int)value;
|
||||
|
@ -2701,91 +2283,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->primingDelay = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "fuelReferencePressure"))
|
||||
{
|
||||
engineConfiguration->fuelReferencePressure = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "postCrankingFactor"))
|
||||
{
|
||||
engineConfiguration->postCrankingFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "postCrankingDurationSec"))
|
||||
{
|
||||
engineConfiguration->postCrankingDurationSec = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.tempC_1"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor1.config.tempC_1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.tempC_2"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor1.config.tempC_2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.tempC_3"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor1.config.tempC_3 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.resistance_1"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor1.config.resistance_1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.resistance_2"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor1.config.resistance_2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.resistance_3"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor1.config.resistance_3 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.bias_resistor"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor1.config.bias_resistor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.tempC_1"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor2.config.tempC_1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.tempC_2"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor2.config.tempC_2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.tempC_3"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor2.config.tempC_3 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.resistance_1"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor2.config.resistance_1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.resistance_2"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor2.config.resistance_2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.resistance_3"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor2.config.resistance_3 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.bias_resistor"))
|
||||
{
|
||||
engineConfiguration->auxTempSensor2.config.bias_resistor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "knockSamplingDuration"))
|
||||
{
|
||||
engineConfiguration->knockSamplingDuration = (int)value;
|
||||
|
@ -2796,21 +2293,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->etbFreq = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "etbWastegatePid.pFactor"))
|
||||
{
|
||||
engineConfiguration->etbWastegatePid.pFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "etbWastegatePid.iFactor"))
|
||||
{
|
||||
engineConfiguration->etbWastegatePid.iFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "etbWastegatePid.dFactor"))
|
||||
{
|
||||
engineConfiguration->etbWastegatePid.dFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "etbWastegatePid.offset"))
|
||||
{
|
||||
engineConfiguration->etbWastegatePid.offset = (int)value;
|
||||
|
@ -2841,31 +2323,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->stepperMaxDutyCycle = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idlePidActivationTime"))
|
||||
{
|
||||
engineConfiguration->idlePidActivationTime = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "oilPressure.v1"))
|
||||
{
|
||||
engineConfiguration->oilPressure.v1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "oilPressure.value1"))
|
||||
{
|
||||
engineConfiguration->oilPressure.value1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "oilPressure.v2"))
|
||||
{
|
||||
engineConfiguration->oilPressure.v2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "oilPressure.value2"))
|
||||
{
|
||||
engineConfiguration->oilPressure.value2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "fan2OnTemperature"))
|
||||
{
|
||||
engineConfiguration->fan2OnTemperature = (int)value;
|
||||
|
@ -2906,76 +2363,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->coastingFuelCutMap = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "highPressureFuel.v1"))
|
||||
{
|
||||
engineConfiguration->highPressureFuel.v1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "highPressureFuel.value1"))
|
||||
{
|
||||
engineConfiguration->highPressureFuel.value1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "highPressureFuel.v2"))
|
||||
{
|
||||
engineConfiguration->highPressureFuel.v2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "highPressureFuel.value2"))
|
||||
{
|
||||
engineConfiguration->highPressureFuel.value2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "lowPressureFuel.v1"))
|
||||
{
|
||||
engineConfiguration->lowPressureFuel.v1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "lowPressureFuel.value1"))
|
||||
{
|
||||
engineConfiguration->lowPressureFuel.value1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "lowPressureFuel.v2"))
|
||||
{
|
||||
engineConfiguration->lowPressureFuel.v2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "lowPressureFuel.value2"))
|
||||
{
|
||||
engineConfiguration->lowPressureFuel.value2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tChargeAirCoefMin"))
|
||||
{
|
||||
engineConfiguration->tChargeAirCoefMin = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tChargeAirCoefMax"))
|
||||
{
|
||||
engineConfiguration->tChargeAirCoefMax = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tChargeAirFlowMax"))
|
||||
{
|
||||
engineConfiguration->tChargeAirFlowMax = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tChargeAirIncrLimit"))
|
||||
{
|
||||
engineConfiguration->tChargeAirIncrLimit = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tChargeAirDecrLimit"))
|
||||
{
|
||||
engineConfiguration->tChargeAirDecrLimit = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "hip9011Gain"))
|
||||
{
|
||||
engineConfiguration->hip9011Gain = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "etb_iTermMin"))
|
||||
{
|
||||
engineConfiguration->etb_iTermMin = (int)value;
|
||||
|
@ -2986,21 +2373,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->etb_iTermMax = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleTimingPid.pFactor"))
|
||||
{
|
||||
engineConfiguration->idleTimingPid.pFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleTimingPid.iFactor"))
|
||||
{
|
||||
engineConfiguration->idleTimingPid.iFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleTimingPid.dFactor"))
|
||||
{
|
||||
engineConfiguration->idleTimingPid.dFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleTimingPid.offset"))
|
||||
{
|
||||
engineConfiguration->idleTimingPid.offset = (int)value;
|
||||
|
@ -3031,11 +2403,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->tpsAccelFractionPeriod = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "tpsAccelFractionDivisor"))
|
||||
{
|
||||
engineConfiguration->tpsAccelFractionDivisor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idlerpmpid_iTermMin"))
|
||||
{
|
||||
engineConfiguration->idlerpmpid_iTermMin = (int)value;
|
||||
|
@ -3051,11 +2418,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->idlerpmpid_iTermMax = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "etbIdleThrottleRange"))
|
||||
{
|
||||
engineConfiguration->etbIdleThrottleRange = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "triggerCompCenterVolt"))
|
||||
{
|
||||
engineConfiguration->triggerCompCenterVolt = (int)value;
|
||||
|
@ -3076,21 +2438,6 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->triggerCompSensorSatRpm = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid2.pFactor"))
|
||||
{
|
||||
engineConfiguration->idleRpmPid2.pFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid2.iFactor"))
|
||||
{
|
||||
engineConfiguration->idleRpmPid2.iFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid2.dFactor"))
|
||||
{
|
||||
engineConfiguration->idleRpmPid2.dFactor = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid2.offset"))
|
||||
{
|
||||
engineConfiguration->idleRpmPid2.offset = (int)value;
|
||||
|
@ -3211,49 +2558,4 @@ void setConfigValueByName(const char *name, float value) {
|
|||
engineConfiguration->vvtActivationDelayMs = (int)value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxLinear1.v1"))
|
||||
{
|
||||
engineConfiguration->auxLinear1.v1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxLinear1.value1"))
|
||||
{
|
||||
engineConfiguration->auxLinear1.value1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxLinear1.v2"))
|
||||
{
|
||||
engineConfiguration->auxLinear1.v2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxLinear1.value2"))
|
||||
{
|
||||
engineConfiguration->auxLinear1.value2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxLinear2.v1"))
|
||||
{
|
||||
engineConfiguration->auxLinear2.v1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxLinear2.value1"))
|
||||
{
|
||||
engineConfiguration->auxLinear2.value1 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxLinear2.v2"))
|
||||
{
|
||||
engineConfiguration->auxLinear2.v2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "auxLinear2.value2"))
|
||||
{
|
||||
engineConfiguration->auxLinear2.value2 = value;
|
||||
return;
|
||||
}
|
||||
if (strEqualCaseInsensitive(name, "etbMinimumPosition"))
|
||||
{
|
||||
engineConfiguration->etbMinimumPosition = value;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue