Auto-generated configs and docs

This commit is contained in:
GitHub build-firmware Action 2021-12-14 21:19:31 +00:00
parent 5854cbb75e
commit c73ceec960
1 changed files with 677 additions and 0 deletions

View File

@ -624,3 +624,680 @@ float getConfigValueByName(const char *name) {
return config->vssFilterReciprocal;
return EFI_ERROR_CODE;
}
void setConfigValueByName(const char *name, float value) {
if (strEqualCaseInsensitive(name, "injector.flow"))
{
engineConfiguration->injector.flow = value;
return;
}
if (strEqualCaseInsensitive(name, "cranking.baseFuel"))
{
engineConfiguration->cranking.baseFuel = value;
return;
}
if (strEqualCaseInsensitive(name, "primingSquirtDurationMs"))
{
engineConfiguration->primingSquirtDurationMs = value;
return;
}
if (strEqualCaseInsensitive(name, "ignitionDwellForCrankingMs"))
{
engineConfiguration->ignitionDwellForCrankingMs = 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, "knockBandCustom"))
{
engineConfiguration->knockBandCustom = value;
return;
}
if (strEqualCaseInsensitive(name, "specs.displacement"))
{
engineConfiguration->specs.displacement = value;
return;
}
if (strEqualCaseInsensitive(name, "cylinderBore"))
{
engineConfiguration->cylinderBore = value;
return;
}
if (strEqualCaseInsensitive(name, "extraInjectionOffset"))
{
engineConfiguration->extraInjectionOffset = value;
return;
}
if (strEqualCaseInsensitive(name, "crankingTimingAngle"))
{
engineConfiguration->crankingTimingAngle = 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, "idle_derivativeFilterLoss"))
{
engineConfiguration->idle_derivativeFilterLoss = 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, "manIdlePosition"))
{
engineConfiguration->manIdlePosition = value;
return;
}
if (strEqualCaseInsensitive(name, "idle_antiwindupFreq"))
{
engineConfiguration->idle_antiwindupFreq = value;
return;
}
if (strEqualCaseInsensitive(name, "compressionRatio"))
{
engineConfiguration->compressionRatio = 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, "launchActivateDelay"))
{
engineConfiguration->launchActivateDelay = value;
return;
}
if (strEqualCaseInsensitive(name, "turboSpeedSensorMultiplier"))
{
engineConfiguration->turboSpeedSensorMultiplier = 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, "noAccelAfterHardLimitPeriodSecs"))
{
engineConfiguration->noAccelAfterHardLimitPeriodSecs = 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, "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, "mapErrorDetectionTooLow"))
{
engineConfiguration->mapErrorDetectionTooLow = value;
return;
}
if (strEqualCaseInsensitive(name, "mapErrorDetectionTooHigh"))
{
engineConfiguration->mapErrorDetectionTooHigh = 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, "wwaeBeta"))
{
engineConfiguration->wwaeBeta = value;
return;
}
if (strEqualCaseInsensitive(name, "throttlePedalUpVoltage"))
{
engineConfiguration->throttlePedalUpVoltage = value;
return;
}
if (strEqualCaseInsensitive(name, "throttlePedalWOTVoltage"))
{
engineConfiguration->throttlePedalWOTVoltage = value;
return;
}
if (strEqualCaseInsensitive(name, "targetVBatt"))
{
engineConfiguration->targetVBatt = value;
return;
}
if (strEqualCaseInsensitive(name, "alternatorOffAboveTps"))
{
engineConfiguration->alternatorOffAboveTps = value;
return;
}
if (strEqualCaseInsensitive(name, "tpsAccelEnrichmentThreshold"))
{
engineConfiguration->tpsAccelEnrichmentThreshold = 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, "throttlePedalSecondaryUpVoltage"))
{
engineConfiguration->throttlePedalSecondaryUpVoltage = value;
return;
}
if (strEqualCaseInsensitive(name, "throttlePedalSecondaryWOTVoltage"))
{
engineConfiguration->throttlePedalSecondaryWOTVoltage = 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, "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, "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, "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, "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, "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, "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, "tpsAccelFractionDivisor"))
{
engineConfiguration->tpsAccelFractionDivisor = value;
return;
}
if (strEqualCaseInsensitive(name, "etbIdleThrottleRange"))
{
engineConfiguration->etbIdleThrottleRange = 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, "vssFilterReciprocal"))
{
config->vssFilterReciprocal = value;
return;
}
}