Lua to read tsOutputs #3376
This commit is contained in:
parent
47a55eaa91
commit
28449f3095
|
@ -1,10 +1,626 @@
|
|||
/*
|
||||
* value_lookup_generated.cpp
|
||||
*
|
||||
*/
|
||||
|
||||
#include "pch.h"
|
||||
float getConfigValueByName(const char *name) {
|
||||
return 0;
|
||||
if (strEqualCaseInsensitive(name, "engineSnifferRpmThreshold"))
|
||||
return engineConfiguration->engineSnifferRpmThreshold;
|
||||
if (strEqualCaseInsensitive(name, "injector.flow"))
|
||||
return engineConfiguration->injector.flow;
|
||||
if (strEqualCaseInsensitive(name, "tpsMin"))
|
||||
return engineConfiguration->tpsMin;
|
||||
if (strEqualCaseInsensitive(name, "tpsMax"))
|
||||
return engineConfiguration->tpsMax;
|
||||
if (strEqualCaseInsensitive(name, "tpsErrorDetectionTooLow"))
|
||||
return engineConfiguration->tpsErrorDetectionTooLow;
|
||||
if (strEqualCaseInsensitive(name, "tpsErrorDetectionTooHigh"))
|
||||
return engineConfiguration->tpsErrorDetectionTooHigh;
|
||||
if (strEqualCaseInsensitive(name, "cranking.baseFuel"))
|
||||
return engineConfiguration->cranking.baseFuel;
|
||||
if (strEqualCaseInsensitive(name, "cranking.rpm"))
|
||||
return engineConfiguration->cranking.rpm;
|
||||
if (strEqualCaseInsensitive(name, "primingSquirtDurationMs"))
|
||||
return engineConfiguration->primingSquirtDurationMs;
|
||||
if (strEqualCaseInsensitive(name, "ignitionDwellForCrankingMs"))
|
||||
return engineConfiguration->ignitionDwellForCrankingMs;
|
||||
if (strEqualCaseInsensitive(name, "etbRevLimitStart"))
|
||||
return engineConfiguration->etbRevLimitStart;
|
||||
if (strEqualCaseInsensitive(name, "etbRevLimitRange"))
|
||||
return engineConfiguration->etbRevLimitRange;
|
||||
if (strEqualCaseInsensitive(name, "map.sensor.lowValue"))
|
||||
return engineConfiguration->map.sensor.lowValue;
|
||||
if (strEqualCaseInsensitive(name, "map.sensor.highValue"))
|
||||
return engineConfiguration->map.sensor.highValue;
|
||||
if (strEqualCaseInsensitive(name, "clt.config.tempC_1"))
|
||||
return engineConfiguration->clt.config.tempC_1;
|
||||
if (strEqualCaseInsensitive(name, "clt.config.tempC_2"))
|
||||
return engineConfiguration->clt.config.tempC_2;
|
||||
if (strEqualCaseInsensitive(name, "clt.config.tempC_3"))
|
||||
return engineConfiguration->clt.config.tempC_3;
|
||||
if (strEqualCaseInsensitive(name, "clt.config.resistance_1"))
|
||||
return engineConfiguration->clt.config.resistance_1;
|
||||
if (strEqualCaseInsensitive(name, "clt.config.resistance_2"))
|
||||
return engineConfiguration->clt.config.resistance_2;
|
||||
if (strEqualCaseInsensitive(name, "clt.config.resistance_3"))
|
||||
return engineConfiguration->clt.config.resistance_3;
|
||||
if (strEqualCaseInsensitive(name, "clt.config.bias_resistor"))
|
||||
return engineConfiguration->clt.config.bias_resistor;
|
||||
if (strEqualCaseInsensitive(name, "iat.config.tempC_1"))
|
||||
return engineConfiguration->iat.config.tempC_1;
|
||||
if (strEqualCaseInsensitive(name, "iat.config.tempC_2"))
|
||||
return engineConfiguration->iat.config.tempC_2;
|
||||
if (strEqualCaseInsensitive(name, "iat.config.tempC_3"))
|
||||
return engineConfiguration->iat.config.tempC_3;
|
||||
if (strEqualCaseInsensitive(name, "iat.config.resistance_1"))
|
||||
return engineConfiguration->iat.config.resistance_1;
|
||||
if (strEqualCaseInsensitive(name, "iat.config.resistance_2"))
|
||||
return engineConfiguration->iat.config.resistance_2;
|
||||
if (strEqualCaseInsensitive(name, "iat.config.resistance_3"))
|
||||
return engineConfiguration->iat.config.resistance_3;
|
||||
if (strEqualCaseInsensitive(name, "iat.config.bias_resistor"))
|
||||
return engineConfiguration->iat.config.bias_resistor;
|
||||
if (strEqualCaseInsensitive(name, "launchRpm"))
|
||||
return engineConfiguration->launchRpm;
|
||||
if (strEqualCaseInsensitive(name, "launchTimingRetard"))
|
||||
return engineConfiguration->launchTimingRetard;
|
||||
if (strEqualCaseInsensitive(name, "hip9011PrescalerAndSDO"))
|
||||
return engineConfiguration->hip9011PrescalerAndSDO;
|
||||
if (strEqualCaseInsensitive(name, "knockBandCustom"))
|
||||
return engineConfiguration->knockBandCustom;
|
||||
if (strEqualCaseInsensitive(name, "specs.displacement"))
|
||||
return engineConfiguration->specs.displacement;
|
||||
if (strEqualCaseInsensitive(name, "specs.cylindersCount"))
|
||||
return engineConfiguration->specs.cylindersCount;
|
||||
if (strEqualCaseInsensitive(name, "cylinderBore"))
|
||||
return engineConfiguration->cylinderBore;
|
||||
if (strEqualCaseInsensitive(name, "sensorSnifferRpmThreshold"))
|
||||
return engineConfiguration->sensorSnifferRpmThreshold;
|
||||
if (strEqualCaseInsensitive(name, "rpmHardLimit"))
|
||||
return engineConfiguration->rpmHardLimit;
|
||||
if (strEqualCaseInsensitive(name, "extraInjectionOffset"))
|
||||
return engineConfiguration->extraInjectionOffset;
|
||||
if (strEqualCaseInsensitive(name, "crankingTimingAngle"))
|
||||
return engineConfiguration->crankingTimingAngle;
|
||||
if (strEqualCaseInsensitive(name, "gapTrackingLengthOverride"))
|
||||
return engineConfiguration->gapTrackingLengthOverride;
|
||||
if (strEqualCaseInsensitive(name, "maxIdleVss"))
|
||||
return engineConfiguration->maxIdleVss;
|
||||
if (strEqualCaseInsensitive(name, "minOilPressureAfterStart"))
|
||||
return engineConfiguration->minOilPressureAfterStart;
|
||||
if (strEqualCaseInsensitive(name, "fixedModeTiming"))
|
||||
return engineConfiguration->fixedModeTiming;
|
||||
if (strEqualCaseInsensitive(name, "globalTriggerAngleOffset"))
|
||||
return engineConfiguration->globalTriggerAngleOffset;
|
||||
if (strEqualCaseInsensitive(name, "analogInputDividerCoefficient"))
|
||||
return engineConfiguration->analogInputDividerCoefficient;
|
||||
if (strEqualCaseInsensitive(name, "vbattDividerCoeff"))
|
||||
return engineConfiguration->vbattDividerCoeff;
|
||||
if (strEqualCaseInsensitive(name, "fanOnTemperature"))
|
||||
return engineConfiguration->fanOnTemperature;
|
||||
if (strEqualCaseInsensitive(name, "fanOffTemperature"))
|
||||
return engineConfiguration->fanOffTemperature;
|
||||
if (strEqualCaseInsensitive(name, "driveWheelRevPerKm"))
|
||||
return engineConfiguration->driveWheelRevPerKm;
|
||||
if (strEqualCaseInsensitive(name, "canSleepPeriodMs"))
|
||||
return engineConfiguration->canSleepPeriodMs;
|
||||
if (strEqualCaseInsensitive(name, "byFirmwareVersion"))
|
||||
return engineConfiguration->byFirmwareVersion;
|
||||
if (strEqualCaseInsensitive(name, "HD44780width"))
|
||||
return engineConfiguration->HD44780width;
|
||||
if (strEqualCaseInsensitive(name, "HD44780height"))
|
||||
return engineConfiguration->HD44780height;
|
||||
if (strEqualCaseInsensitive(name, "idle_derivativeFilterLoss"))
|
||||
return engineConfiguration->idle_derivativeFilterLoss;
|
||||
if (strEqualCaseInsensitive(name, "trailingSparkAngle"))
|
||||
return engineConfiguration->trailingSparkAngle;
|
||||
if (strEqualCaseInsensitive(name, "trigger.customTotalToothCount"))
|
||||
return engineConfiguration->trigger.customTotalToothCount;
|
||||
if (strEqualCaseInsensitive(name, "trigger.customSkippedToothCount"))
|
||||
return engineConfiguration->trigger.customSkippedToothCount;
|
||||
if (strEqualCaseInsensitive(name, "failedMapFallback"))
|
||||
return engineConfiguration->failedMapFallback;
|
||||
if (strEqualCaseInsensitive(name, "boostControlSafeDutyCycle"))
|
||||
return engineConfiguration->boostControlSafeDutyCycle;
|
||||
if (strEqualCaseInsensitive(name, "globalFuelCorrection"))
|
||||
return engineConfiguration->globalFuelCorrection;
|
||||
if (strEqualCaseInsensitive(name, "adcVcc"))
|
||||
return engineConfiguration->adcVcc;
|
||||
if (strEqualCaseInsensitive(name, "mapCamDetectionAnglePosition"))
|
||||
return engineConfiguration->mapCamDetectionAnglePosition;
|
||||
if (strEqualCaseInsensitive(name, "afr.v1"))
|
||||
return engineConfiguration->afr.v1;
|
||||
if (strEqualCaseInsensitive(name, "afr.value1"))
|
||||
return engineConfiguration->afr.value1;
|
||||
if (strEqualCaseInsensitive(name, "afr.v2"))
|
||||
return engineConfiguration->afr.v2;
|
||||
if (strEqualCaseInsensitive(name, "afr.value2"))
|
||||
return engineConfiguration->afr.value2;
|
||||
if (strEqualCaseInsensitive(name, "baroSensor.lowValue"))
|
||||
return engineConfiguration->baroSensor.lowValue;
|
||||
if (strEqualCaseInsensitive(name, "baroSensor.highValue"))
|
||||
return engineConfiguration->baroSensor.highValue;
|
||||
if (strEqualCaseInsensitive(name, "idle.solenoidFrequency"))
|
||||
return engineConfiguration->idle.solenoidFrequency;
|
||||
if (strEqualCaseInsensitive(name, "manIdlePosition"))
|
||||
return engineConfiguration->manIdlePosition;
|
||||
if (strEqualCaseInsensitive(name, "knockRetardAggression"))
|
||||
return engineConfiguration->knockRetardAggression;
|
||||
if (strEqualCaseInsensitive(name, "knockRetardReapplyRate"))
|
||||
return engineConfiguration->knockRetardReapplyRate;
|
||||
if (strEqualCaseInsensitive(name, "knockRetardMaximum"))
|
||||
return engineConfiguration->knockRetardMaximum;
|
||||
if (strEqualCaseInsensitive(name, "mapCamDetectionThreshold"))
|
||||
return engineConfiguration->mapCamDetectionThreshold;
|
||||
if (strEqualCaseInsensitive(name, "vssGearRatio"))
|
||||
return engineConfiguration->vssGearRatio;
|
||||
if (strEqualCaseInsensitive(name, "vssToothCount"))
|
||||
return engineConfiguration->vssToothCount;
|
||||
if (strEqualCaseInsensitive(name, "mapCamAveragingLength"))
|
||||
return engineConfiguration->mapCamAveragingLength;
|
||||
if (strEqualCaseInsensitive(name, "triggerSimulatorFrequency"))
|
||||
return engineConfiguration->triggerSimulatorFrequency;
|
||||
if (strEqualCaseInsensitive(name, "idle_antiwindupFreq"))
|
||||
return engineConfiguration->idle_antiwindupFreq;
|
||||
if (strEqualCaseInsensitive(name, "acIdleExtraOffset"))
|
||||
return engineConfiguration->acIdleExtraOffset;
|
||||
if (strEqualCaseInsensitive(name, "can2SleepPeriodMs"))
|
||||
return engineConfiguration->can2SleepPeriodMs;
|
||||
if (strEqualCaseInsensitive(name, "wastegatePositionMin"))
|
||||
return engineConfiguration->wastegatePositionMin;
|
||||
if (strEqualCaseInsensitive(name, "wastegatePositionMax"))
|
||||
return engineConfiguration->wastegatePositionMax;
|
||||
if (strEqualCaseInsensitive(name, "idlePositionMin"))
|
||||
return engineConfiguration->idlePositionMin;
|
||||
if (strEqualCaseInsensitive(name, "idlePositionMax"))
|
||||
return engineConfiguration->idlePositionMax;
|
||||
if (strEqualCaseInsensitive(name, "tunerStudioSerialSpeed"))
|
||||
return engineConfiguration->tunerStudioSerialSpeed;
|
||||
if (strEqualCaseInsensitive(name, "compressionRatio"))
|
||||
return engineConfiguration->compressionRatio;
|
||||
if (strEqualCaseInsensitive(name, "verboseCanBaseAddress"))
|
||||
return engineConfiguration->verboseCanBaseAddress;
|
||||
if (strEqualCaseInsensitive(name, "mc33_hvolt"))
|
||||
return engineConfiguration->mc33_hvolt;
|
||||
if (strEqualCaseInsensitive(name, "minimumBoostClosedLoopMap"))
|
||||
return engineConfiguration->minimumBoostClosedLoopMap;
|
||||
if (strEqualCaseInsensitive(name, "mapCamSkipFactor"))
|
||||
return engineConfiguration->mapCamSkipFactor;
|
||||
if (strEqualCaseInsensitive(name, "sdCardPeriodMs"))
|
||||
return engineConfiguration->sdCardPeriodMs;
|
||||
if (strEqualCaseInsensitive(name, "mapMinBufferLength"))
|
||||
return engineConfiguration->mapMinBufferLength;
|
||||
if (strEqualCaseInsensitive(name, "idlePidDeactivationTpsThreshold"))
|
||||
return engineConfiguration->idlePidDeactivationTpsThreshold;
|
||||
if (strEqualCaseInsensitive(name, "stepperParkingExtraSteps"))
|
||||
return engineConfiguration->stepperParkingExtraSteps;
|
||||
if (strEqualCaseInsensitive(name, "tps1SecondaryMin"))
|
||||
return engineConfiguration->tps1SecondaryMin;
|
||||
if (strEqualCaseInsensitive(name, "tps1SecondaryMax"))
|
||||
return engineConfiguration->tps1SecondaryMax;
|
||||
if (strEqualCaseInsensitive(name, "antiLagRpmTreshold"))
|
||||
return engineConfiguration->antiLagRpmTreshold;
|
||||
if (strEqualCaseInsensitive(name, "startCrankingDuration"))
|
||||
return engineConfiguration->startCrankingDuration;
|
||||
if (strEqualCaseInsensitive(name, "multisparkMaxRpm"))
|
||||
return engineConfiguration->multisparkMaxRpm;
|
||||
if (strEqualCaseInsensitive(name, "multisparkMaxSparkingAngle"))
|
||||
return engineConfiguration->multisparkMaxSparkingAngle;
|
||||
if (strEqualCaseInsensitive(name, "multisparkMaxExtraSparkCount"))
|
||||
return engineConfiguration->multisparkMaxExtraSparkCount;
|
||||
if (strEqualCaseInsensitive(name, "boostPid.pFactor"))
|
||||
return engineConfiguration->boostPid.pFactor;
|
||||
if (strEqualCaseInsensitive(name, "boostPid.iFactor"))
|
||||
return engineConfiguration->boostPid.iFactor;
|
||||
if (strEqualCaseInsensitive(name, "boostPid.dFactor"))
|
||||
return engineConfiguration->boostPid.dFactor;
|
||||
if (strEqualCaseInsensitive(name, "boostPid.offset"))
|
||||
return engineConfiguration->boostPid.offset;
|
||||
if (strEqualCaseInsensitive(name, "boostPid.periodMs"))
|
||||
return engineConfiguration->boostPid.periodMs;
|
||||
if (strEqualCaseInsensitive(name, "boostPid.minValue"))
|
||||
return engineConfiguration->boostPid.minValue;
|
||||
if (strEqualCaseInsensitive(name, "boostPid.maxValue"))
|
||||
return engineConfiguration->boostPid.maxValue;
|
||||
if (strEqualCaseInsensitive(name, "boostPwmFrequency"))
|
||||
return engineConfiguration->boostPwmFrequency;
|
||||
if (strEqualCaseInsensitive(name, "launchSpeedThreshold"))
|
||||
return engineConfiguration->launchSpeedThreshold;
|
||||
if (strEqualCaseInsensitive(name, "launchTimingRpmRange"))
|
||||
return engineConfiguration->launchTimingRpmRange;
|
||||
if (strEqualCaseInsensitive(name, "launchFuelAdded"))
|
||||
return engineConfiguration->launchFuelAdded;
|
||||
if (strEqualCaseInsensitive(name, "launchBoostDuty"))
|
||||
return engineConfiguration->launchBoostDuty;
|
||||
if (strEqualCaseInsensitive(name, "hardCutRpmRange"))
|
||||
return engineConfiguration->hardCutRpmRange;
|
||||
if (strEqualCaseInsensitive(name, "launchAdvanceRpmRange"))
|
||||
return engineConfiguration->launchAdvanceRpmRange;
|
||||
if (strEqualCaseInsensitive(name, "launchTpsTreshold"))
|
||||
return engineConfiguration->launchTpsTreshold;
|
||||
if (strEqualCaseInsensitive(name, "launchActivateDelay"))
|
||||
return engineConfiguration->launchActivateDelay;
|
||||
if (strEqualCaseInsensitive(name, "stft.maxIdleRegionRpm"))
|
||||
return engineConfiguration->stft.maxIdleRegionRpm;
|
||||
if (strEqualCaseInsensitive(name, "stft.maxOverrunLoad"))
|
||||
return engineConfiguration->stft.maxOverrunLoad;
|
||||
if (strEqualCaseInsensitive(name, "stft.minPowerLoad"))
|
||||
return engineConfiguration->stft.minPowerLoad;
|
||||
if (strEqualCaseInsensitive(name, "stft.deadband"))
|
||||
return engineConfiguration->stft.deadband;
|
||||
if (strEqualCaseInsensitive(name, "stft.minClt"))
|
||||
return engineConfiguration->stft.minClt;
|
||||
if (strEqualCaseInsensitive(name, "stft.minAfr"))
|
||||
return engineConfiguration->stft.minAfr;
|
||||
if (strEqualCaseInsensitive(name, "stft.maxAfr"))
|
||||
return engineConfiguration->stft.maxAfr;
|
||||
if (strEqualCaseInsensitive(name, "stft.startupDelay"))
|
||||
return engineConfiguration->stft.startupDelay;
|
||||
if (strEqualCaseInsensitive(name, "vehicleWeight"))
|
||||
return engineConfiguration->vehicleWeight;
|
||||
if (strEqualCaseInsensitive(name, "tps2SecondaryMin"))
|
||||
return engineConfiguration->tps2SecondaryMin;
|
||||
if (strEqualCaseInsensitive(name, "tps2SecondaryMax"))
|
||||
return engineConfiguration->tps2SecondaryMax;
|
||||
if (strEqualCaseInsensitive(name, "etbNeutralPosition"))
|
||||
return engineConfiguration->etbNeutralPosition;
|
||||
if (strEqualCaseInsensitive(name, "engineChartSize"))
|
||||
return engineConfiguration->engineChartSize;
|
||||
if (strEqualCaseInsensitive(name, "idlePidRpmUpperLimit"))
|
||||
return engineConfiguration->idlePidRpmUpperLimit;
|
||||
if (strEqualCaseInsensitive(name, "turboSpeedSensorMultiplier"))
|
||||
return engineConfiguration->turboSpeedSensorMultiplier;
|
||||
if (strEqualCaseInsensitive(name, "acIdleRpmBump"))
|
||||
return engineConfiguration->acIdleRpmBump;
|
||||
if (strEqualCaseInsensitive(name, "warningPeriod"))
|
||||
return engineConfiguration->warningPeriod;
|
||||
if (strEqualCaseInsensitive(name, "knockDetectionWindowStart"))
|
||||
return engineConfiguration->knockDetectionWindowStart;
|
||||
if (strEqualCaseInsensitive(name, "knockDetectionWindowEnd"))
|
||||
return engineConfiguration->knockDetectionWindowEnd;
|
||||
if (strEqualCaseInsensitive(name, "idleStepperReactionTime"))
|
||||
return engineConfiguration->idleStepperReactionTime;
|
||||
if (strEqualCaseInsensitive(name, "idleStepperTotalSteps"))
|
||||
return engineConfiguration->idleStepperTotalSteps;
|
||||
if (strEqualCaseInsensitive(name, "noAccelAfterHardLimitPeriodSecs"))
|
||||
return engineConfiguration->noAccelAfterHardLimitPeriodSecs;
|
||||
if (strEqualCaseInsensitive(name, "mapAveragingSchedulingAtIndex"))
|
||||
return engineConfiguration->mapAveragingSchedulingAtIndex;
|
||||
if (strEqualCaseInsensitive(name, "tachPulseDuractionMs"))
|
||||
return engineConfiguration->tachPulseDuractionMs;
|
||||
if (strEqualCaseInsensitive(name, "maxAcRpm"))
|
||||
return engineConfiguration->maxAcRpm;
|
||||
if (strEqualCaseInsensitive(name, "maxAcTps"))
|
||||
return engineConfiguration->maxAcTps;
|
||||
if (strEqualCaseInsensitive(name, "maxAcClt"))
|
||||
return engineConfiguration->maxAcClt;
|
||||
if (strEqualCaseInsensitive(name, "wwaeTau"))
|
||||
return engineConfiguration->wwaeTau;
|
||||
if (strEqualCaseInsensitive(name, "alternatorControl.pFactor"))
|
||||
return engineConfiguration->alternatorControl.pFactor;
|
||||
if (strEqualCaseInsensitive(name, "alternatorControl.iFactor"))
|
||||
return engineConfiguration->alternatorControl.iFactor;
|
||||
if (strEqualCaseInsensitive(name, "alternatorControl.dFactor"))
|
||||
return engineConfiguration->alternatorControl.dFactor;
|
||||
if (strEqualCaseInsensitive(name, "alternatorControl.offset"))
|
||||
return engineConfiguration->alternatorControl.offset;
|
||||
if (strEqualCaseInsensitive(name, "alternatorControl.periodMs"))
|
||||
return engineConfiguration->alternatorControl.periodMs;
|
||||
if (strEqualCaseInsensitive(name, "alternatorControl.minValue"))
|
||||
return engineConfiguration->alternatorControl.minValue;
|
||||
if (strEqualCaseInsensitive(name, "alternatorControl.maxValue"))
|
||||
return engineConfiguration->alternatorControl.maxValue;
|
||||
if (strEqualCaseInsensitive(name, "etb.pFactor"))
|
||||
return engineConfiguration->etb.pFactor;
|
||||
if (strEqualCaseInsensitive(name, "etb.iFactor"))
|
||||
return engineConfiguration->etb.iFactor;
|
||||
if (strEqualCaseInsensitive(name, "etb.dFactor"))
|
||||
return engineConfiguration->etb.dFactor;
|
||||
if (strEqualCaseInsensitive(name, "etb.offset"))
|
||||
return engineConfiguration->etb.offset;
|
||||
if (strEqualCaseInsensitive(name, "etb.periodMs"))
|
||||
return engineConfiguration->etb.periodMs;
|
||||
if (strEqualCaseInsensitive(name, "etb.minValue"))
|
||||
return engineConfiguration->etb.minValue;
|
||||
if (strEqualCaseInsensitive(name, "etb.maxValue"))
|
||||
return engineConfiguration->etb.maxValue;
|
||||
if (strEqualCaseInsensitive(name, "tps2Min"))
|
||||
return engineConfiguration->tps2Min;
|
||||
if (strEqualCaseInsensitive(name, "tps2Max"))
|
||||
return engineConfiguration->tps2Max;
|
||||
if (strEqualCaseInsensitive(name, "tachPulsePerRev"))
|
||||
return engineConfiguration->tachPulsePerRev;
|
||||
if (strEqualCaseInsensitive(name, "mapErrorDetectionTooLow"))
|
||||
return engineConfiguration->mapErrorDetectionTooLow;
|
||||
if (strEqualCaseInsensitive(name, "mapErrorDetectionTooHigh"))
|
||||
return engineConfiguration->mapErrorDetectionTooHigh;
|
||||
if (strEqualCaseInsensitive(name, "multisparkSparkDuration"))
|
||||
return engineConfiguration->multisparkSparkDuration;
|
||||
if (strEqualCaseInsensitive(name, "multisparkDwell"))
|
||||
return engineConfiguration->multisparkDwell;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid.pFactor"))
|
||||
return engineConfiguration->idleRpmPid.pFactor;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid.iFactor"))
|
||||
return engineConfiguration->idleRpmPid.iFactor;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid.dFactor"))
|
||||
return engineConfiguration->idleRpmPid.dFactor;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid.offset"))
|
||||
return engineConfiguration->idleRpmPid.offset;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid.periodMs"))
|
||||
return engineConfiguration->idleRpmPid.periodMs;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid.minValue"))
|
||||
return engineConfiguration->idleRpmPid.minValue;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid.maxValue"))
|
||||
return engineConfiguration->idleRpmPid.maxValue;
|
||||
if (strEqualCaseInsensitive(name, "wwaeBeta"))
|
||||
return engineConfiguration->wwaeBeta;
|
||||
if (strEqualCaseInsensitive(name, "throttlePedalUpVoltage"))
|
||||
return engineConfiguration->throttlePedalUpVoltage;
|
||||
if (strEqualCaseInsensitive(name, "throttlePedalWOTVoltage"))
|
||||
return engineConfiguration->throttlePedalWOTVoltage;
|
||||
if (strEqualCaseInsensitive(name, "startUpFuelPumpDuration"))
|
||||
return engineConfiguration->startUpFuelPumpDuration;
|
||||
if (strEqualCaseInsensitive(name, "idlePidRpmDeadZone"))
|
||||
return engineConfiguration->idlePidRpmDeadZone;
|
||||
if (strEqualCaseInsensitive(name, "targetVBatt"))
|
||||
return engineConfiguration->targetVBatt;
|
||||
if (strEqualCaseInsensitive(name, "alternatorOffAboveTps"))
|
||||
return engineConfiguration->alternatorOffAboveTps;
|
||||
if (strEqualCaseInsensitive(name, "afterCrankingIACtaperDuration"))
|
||||
return engineConfiguration->afterCrankingIACtaperDuration;
|
||||
if (strEqualCaseInsensitive(name, "iacByTpsTaper"))
|
||||
return engineConfiguration->iacByTpsTaper;
|
||||
if (strEqualCaseInsensitive(name, "tpsAccelLength"))
|
||||
return engineConfiguration->tpsAccelLength;
|
||||
if (strEqualCaseInsensitive(name, "tpsAccelEnrichmentThreshold"))
|
||||
return engineConfiguration->tpsAccelEnrichmentThreshold;
|
||||
if (strEqualCaseInsensitive(name, "engineLoadAccelLength"))
|
||||
return engineConfiguration->engineLoadAccelLength;
|
||||
if (strEqualCaseInsensitive(name, "uartConsoleSerialSpeed"))
|
||||
return engineConfiguration->uartConsoleSerialSpeed;
|
||||
if (strEqualCaseInsensitive(name, "tpsDecelEnleanmentThreshold"))
|
||||
return engineConfiguration->tpsDecelEnleanmentThreshold;
|
||||
if (strEqualCaseInsensitive(name, "tpsDecelEnleanmentMultiplier"))
|
||||
return engineConfiguration->tpsDecelEnleanmentMultiplier;
|
||||
if (strEqualCaseInsensitive(name, "slowAdcAlpha"))
|
||||
return engineConfiguration->slowAdcAlpha;
|
||||
if (strEqualCaseInsensitive(name, "auxSerialSpeed"))
|
||||
return engineConfiguration->auxSerialSpeed;
|
||||
if (strEqualCaseInsensitive(name, "throttlePedalSecondaryUpVoltage"))
|
||||
return engineConfiguration->throttlePedalSecondaryUpVoltage;
|
||||
if (strEqualCaseInsensitive(name, "throttlePedalSecondaryWOTVoltage"))
|
||||
return engineConfiguration->throttlePedalSecondaryWOTVoltage;
|
||||
if (strEqualCaseInsensitive(name, "verboseCan2BaseAddress"))
|
||||
return engineConfiguration->verboseCan2BaseAddress;
|
||||
if (strEqualCaseInsensitive(name, "boostCutPressure"))
|
||||
return engineConfiguration->boostCutPressure;
|
||||
if (strEqualCaseInsensitive(name, "fixedTiming"))
|
||||
return engineConfiguration->fixedTiming;
|
||||
if (strEqualCaseInsensitive(name, "mapLowValueVoltage"))
|
||||
return engineConfiguration->mapLowValueVoltage;
|
||||
if (strEqualCaseInsensitive(name, "mapHighValueVoltage"))
|
||||
return engineConfiguration->mapHighValueVoltage;
|
||||
if (strEqualCaseInsensitive(name, "egoValueShift"))
|
||||
return engineConfiguration->egoValueShift;
|
||||
if (strEqualCaseInsensitive(name, "crankingIACposition"))
|
||||
return engineConfiguration->crankingIACposition;
|
||||
if (strEqualCaseInsensitive(name, "tChargeMinRpmMinTps"))
|
||||
return engineConfiguration->tChargeMinRpmMinTps;
|
||||
if (strEqualCaseInsensitive(name, "tChargeMinRpmMaxTps"))
|
||||
return engineConfiguration->tChargeMinRpmMaxTps;
|
||||
if (strEqualCaseInsensitive(name, "tChargeMaxRpmMinTps"))
|
||||
return engineConfiguration->tChargeMaxRpmMinTps;
|
||||
if (strEqualCaseInsensitive(name, "tChargeMaxRpmMaxTps"))
|
||||
return engineConfiguration->tChargeMaxRpmMaxTps;
|
||||
if (strEqualCaseInsensitive(name, "fan1ExtraIdle"))
|
||||
return engineConfiguration->fan1ExtraIdle;
|
||||
if (strEqualCaseInsensitive(name, "alternatorPwmFrequency"))
|
||||
return engineConfiguration->alternatorPwmFrequency;
|
||||
if (strEqualCaseInsensitive(name, "fan2ExtraIdle"))
|
||||
return engineConfiguration->fan2ExtraIdle;
|
||||
if (strEqualCaseInsensitive(name, "primingDelay"))
|
||||
return engineConfiguration->primingDelay;
|
||||
if (strEqualCaseInsensitive(name, "fuelReferencePressure"))
|
||||
return engineConfiguration->fuelReferencePressure;
|
||||
if (strEqualCaseInsensitive(name, "postCrankingFactor"))
|
||||
return engineConfiguration->postCrankingFactor;
|
||||
if (strEqualCaseInsensitive(name, "postCrankingDurationSec"))
|
||||
return engineConfiguration->postCrankingDurationSec;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.tempC_1"))
|
||||
return engineConfiguration->auxTempSensor1.config.tempC_1;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.tempC_2"))
|
||||
return engineConfiguration->auxTempSensor1.config.tempC_2;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.tempC_3"))
|
||||
return engineConfiguration->auxTempSensor1.config.tempC_3;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.resistance_1"))
|
||||
return engineConfiguration->auxTempSensor1.config.resistance_1;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.resistance_2"))
|
||||
return engineConfiguration->auxTempSensor1.config.resistance_2;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.resistance_3"))
|
||||
return engineConfiguration->auxTempSensor1.config.resistance_3;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor1.config.bias_resistor"))
|
||||
return engineConfiguration->auxTempSensor1.config.bias_resistor;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.tempC_1"))
|
||||
return engineConfiguration->auxTempSensor2.config.tempC_1;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.tempC_2"))
|
||||
return engineConfiguration->auxTempSensor2.config.tempC_2;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.tempC_3"))
|
||||
return engineConfiguration->auxTempSensor2.config.tempC_3;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.resistance_1"))
|
||||
return engineConfiguration->auxTempSensor2.config.resistance_1;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.resistance_2"))
|
||||
return engineConfiguration->auxTempSensor2.config.resistance_2;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.resistance_3"))
|
||||
return engineConfiguration->auxTempSensor2.config.resistance_3;
|
||||
if (strEqualCaseInsensitive(name, "auxTempSensor2.config.bias_resistor"))
|
||||
return engineConfiguration->auxTempSensor2.config.bias_resistor;
|
||||
if (strEqualCaseInsensitive(name, "applyNonlinearBelowPulse"))
|
||||
return engineConfiguration->applyNonlinearBelowPulse;
|
||||
if (strEqualCaseInsensitive(name, "knockSamplingDuration"))
|
||||
return engineConfiguration->knockSamplingDuration;
|
||||
if (strEqualCaseInsensitive(name, "etbFreq"))
|
||||
return engineConfiguration->etbFreq;
|
||||
if (strEqualCaseInsensitive(name, "etbWastegatePid.pFactor"))
|
||||
return engineConfiguration->etbWastegatePid.pFactor;
|
||||
if (strEqualCaseInsensitive(name, "etbWastegatePid.iFactor"))
|
||||
return engineConfiguration->etbWastegatePid.iFactor;
|
||||
if (strEqualCaseInsensitive(name, "etbWastegatePid.dFactor"))
|
||||
return engineConfiguration->etbWastegatePid.dFactor;
|
||||
if (strEqualCaseInsensitive(name, "etbWastegatePid.offset"))
|
||||
return engineConfiguration->etbWastegatePid.offset;
|
||||
if (strEqualCaseInsensitive(name, "etbWastegatePid.periodMs"))
|
||||
return engineConfiguration->etbWastegatePid.periodMs;
|
||||
if (strEqualCaseInsensitive(name, "etbWastegatePid.minValue"))
|
||||
return engineConfiguration->etbWastegatePid.minValue;
|
||||
if (strEqualCaseInsensitive(name, "etbWastegatePid.maxValue"))
|
||||
return engineConfiguration->etbWastegatePid.maxValue;
|
||||
if (strEqualCaseInsensitive(name, "stepperMinDutyCycle"))
|
||||
return engineConfiguration->stepperMinDutyCycle;
|
||||
if (strEqualCaseInsensitive(name, "stepperMaxDutyCycle"))
|
||||
return engineConfiguration->stepperMaxDutyCycle;
|
||||
if (strEqualCaseInsensitive(name, "idlePidActivationTime"))
|
||||
return engineConfiguration->idlePidActivationTime;
|
||||
if (strEqualCaseInsensitive(name, "oilPressure.v1"))
|
||||
return engineConfiguration->oilPressure.v1;
|
||||
if (strEqualCaseInsensitive(name, "oilPressure.value1"))
|
||||
return engineConfiguration->oilPressure.value1;
|
||||
if (strEqualCaseInsensitive(name, "oilPressure.v2"))
|
||||
return engineConfiguration->oilPressure.v2;
|
||||
if (strEqualCaseInsensitive(name, "oilPressure.value2"))
|
||||
return engineConfiguration->oilPressure.value2;
|
||||
if (strEqualCaseInsensitive(name, "fan2OnTemperature"))
|
||||
return engineConfiguration->fan2OnTemperature;
|
||||
if (strEqualCaseInsensitive(name, "fan2OffTemperature"))
|
||||
return engineConfiguration->fan2OffTemperature;
|
||||
if (strEqualCaseInsensitive(name, "coastingFuelCutRpmHigh"))
|
||||
return engineConfiguration->coastingFuelCutRpmHigh;
|
||||
if (strEqualCaseInsensitive(name, "coastingFuelCutRpmLow"))
|
||||
return engineConfiguration->coastingFuelCutRpmLow;
|
||||
if (strEqualCaseInsensitive(name, "coastingFuelCutTps"))
|
||||
return engineConfiguration->coastingFuelCutTps;
|
||||
if (strEqualCaseInsensitive(name, "coastingFuelCutClt"))
|
||||
return engineConfiguration->coastingFuelCutClt;
|
||||
if (strEqualCaseInsensitive(name, "pidExtraForLowRpm"))
|
||||
return engineConfiguration->pidExtraForLowRpm;
|
||||
if (strEqualCaseInsensitive(name, "coastingFuelCutMap"))
|
||||
return engineConfiguration->coastingFuelCutMap;
|
||||
if (strEqualCaseInsensitive(name, "highPressureFuel.v1"))
|
||||
return engineConfiguration->highPressureFuel.v1;
|
||||
if (strEqualCaseInsensitive(name, "highPressureFuel.value1"))
|
||||
return engineConfiguration->highPressureFuel.value1;
|
||||
if (strEqualCaseInsensitive(name, "highPressureFuel.v2"))
|
||||
return engineConfiguration->highPressureFuel.v2;
|
||||
if (strEqualCaseInsensitive(name, "highPressureFuel.value2"))
|
||||
return engineConfiguration->highPressureFuel.value2;
|
||||
if (strEqualCaseInsensitive(name, "lowPressureFuel.v1"))
|
||||
return engineConfiguration->lowPressureFuel.v1;
|
||||
if (strEqualCaseInsensitive(name, "lowPressureFuel.value1"))
|
||||
return engineConfiguration->lowPressureFuel.value1;
|
||||
if (strEqualCaseInsensitive(name, "lowPressureFuel.v2"))
|
||||
return engineConfiguration->lowPressureFuel.v2;
|
||||
if (strEqualCaseInsensitive(name, "lowPressureFuel.value2"))
|
||||
return engineConfiguration->lowPressureFuel.value2;
|
||||
if (strEqualCaseInsensitive(name, "tChargeAirCoefMin"))
|
||||
return engineConfiguration->tChargeAirCoefMin;
|
||||
if (strEqualCaseInsensitive(name, "tChargeAirCoefMax"))
|
||||
return engineConfiguration->tChargeAirCoefMax;
|
||||
if (strEqualCaseInsensitive(name, "tChargeAirFlowMax"))
|
||||
return engineConfiguration->tChargeAirFlowMax;
|
||||
if (strEqualCaseInsensitive(name, "tChargeAirIncrLimit"))
|
||||
return engineConfiguration->tChargeAirIncrLimit;
|
||||
if (strEqualCaseInsensitive(name, "tChargeAirDecrLimit"))
|
||||
return engineConfiguration->tChargeAirDecrLimit;
|
||||
if (strEqualCaseInsensitive(name, "hip9011Gain"))
|
||||
return engineConfiguration->hip9011Gain;
|
||||
if (strEqualCaseInsensitive(name, "etb_iTermMin"))
|
||||
return engineConfiguration->etb_iTermMin;
|
||||
if (strEqualCaseInsensitive(name, "etb_iTermMax"))
|
||||
return engineConfiguration->etb_iTermMax;
|
||||
if (strEqualCaseInsensitive(name, "etbMaximumPosition"))
|
||||
return engineConfiguration->etbMaximumPosition;
|
||||
if (strEqualCaseInsensitive(name, "idleTimingPid.pFactor"))
|
||||
return engineConfiguration->idleTimingPid.pFactor;
|
||||
if (strEqualCaseInsensitive(name, "idleTimingPid.iFactor"))
|
||||
return engineConfiguration->idleTimingPid.iFactor;
|
||||
if (strEqualCaseInsensitive(name, "idleTimingPid.dFactor"))
|
||||
return engineConfiguration->idleTimingPid.dFactor;
|
||||
if (strEqualCaseInsensitive(name, "idleTimingPid.offset"))
|
||||
return engineConfiguration->idleTimingPid.offset;
|
||||
if (strEqualCaseInsensitive(name, "idleTimingPid.periodMs"))
|
||||
return engineConfiguration->idleTimingPid.periodMs;
|
||||
if (strEqualCaseInsensitive(name, "idleTimingPid.minValue"))
|
||||
return engineConfiguration->idleTimingPid.minValue;
|
||||
if (strEqualCaseInsensitive(name, "idleTimingPid.maxValue"))
|
||||
return engineConfiguration->idleTimingPid.maxValue;
|
||||
if (strEqualCaseInsensitive(name, "idleTimingPidDeadZone"))
|
||||
return engineConfiguration->idleTimingPidDeadZone;
|
||||
if (strEqualCaseInsensitive(name, "tpsAccelFractionPeriod"))
|
||||
return engineConfiguration->tpsAccelFractionPeriod;
|
||||
if (strEqualCaseInsensitive(name, "tpsAccelFractionDivisor"))
|
||||
return engineConfiguration->tpsAccelFractionDivisor;
|
||||
if (strEqualCaseInsensitive(name, "idlerpmpid_iTermMin"))
|
||||
return engineConfiguration->idlerpmpid_iTermMin;
|
||||
if (strEqualCaseInsensitive(name, "stoichRatioPrimary"))
|
||||
return engineConfiguration->stoichRatioPrimary;
|
||||
if (strEqualCaseInsensitive(name, "idlerpmpid_iTermMax"))
|
||||
return engineConfiguration->idlerpmpid_iTermMax;
|
||||
if (strEqualCaseInsensitive(name, "stoichRatioSecondary"))
|
||||
return engineConfiguration->stoichRatioSecondary;
|
||||
if (strEqualCaseInsensitive(name, "etbIdleThrottleRange"))
|
||||
return engineConfiguration->etbIdleThrottleRange;
|
||||
if (strEqualCaseInsensitive(name, "triggerCompCenterVolt"))
|
||||
return engineConfiguration->triggerCompCenterVolt;
|
||||
if (strEqualCaseInsensitive(name, "triggerCompHystMin"))
|
||||
return engineConfiguration->triggerCompHystMin;
|
||||
if (strEqualCaseInsensitive(name, "triggerCompHystMax"))
|
||||
return engineConfiguration->triggerCompHystMax;
|
||||
if (strEqualCaseInsensitive(name, "triggerCompSensorSatRpm"))
|
||||
return engineConfiguration->triggerCompSensorSatRpm;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid2.pFactor"))
|
||||
return engineConfiguration->idleRpmPid2.pFactor;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid2.iFactor"))
|
||||
return engineConfiguration->idleRpmPid2.iFactor;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid2.dFactor"))
|
||||
return engineConfiguration->idleRpmPid2.dFactor;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid2.offset"))
|
||||
return engineConfiguration->idleRpmPid2.offset;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid2.periodMs"))
|
||||
return engineConfiguration->idleRpmPid2.periodMs;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid2.minValue"))
|
||||
return engineConfiguration->idleRpmPid2.minValue;
|
||||
if (strEqualCaseInsensitive(name, "idleRpmPid2.maxValue"))
|
||||
return engineConfiguration->idleRpmPid2.maxValue;
|
||||
if (strEqualCaseInsensitive(name, "mc33_i_boost"))
|
||||
return engineConfiguration->mc33_i_boost;
|
||||
if (strEqualCaseInsensitive(name, "mc33_i_peak"))
|
||||
return engineConfiguration->mc33_i_peak;
|
||||
if (strEqualCaseInsensitive(name, "mc33_i_hold"))
|
||||
return engineConfiguration->mc33_i_hold;
|
||||
if (strEqualCaseInsensitive(name, "mc33_t_max_boost"))
|
||||
return engineConfiguration->mc33_t_max_boost;
|
||||
if (strEqualCaseInsensitive(name, "mc33_t_peak_off"))
|
||||
return engineConfiguration->mc33_t_peak_off;
|
||||
if (strEqualCaseInsensitive(name, "mc33_t_peak_tot"))
|
||||
return engineConfiguration->mc33_t_peak_tot;
|
||||
if (strEqualCaseInsensitive(name, "mc33_t_bypass"))
|
||||
return engineConfiguration->mc33_t_bypass;
|
||||
if (strEqualCaseInsensitive(name, "mc33_t_hold_off"))
|
||||
return engineConfiguration->mc33_t_hold_off;
|
||||
if (strEqualCaseInsensitive(name, "mc33_t_hold_tot"))
|
||||
return engineConfiguration->mc33_t_hold_tot;
|
||||
if (strEqualCaseInsensitive(name, "hpfpCamLobes"))
|
||||
return engineConfiguration->hpfpCamLobes;
|
||||
if (strEqualCaseInsensitive(name, "hpfpPeakPos"))
|
||||
return engineConfiguration->hpfpPeakPos;
|
||||
if (strEqualCaseInsensitive(name, "hpfpMinAngle"))
|
||||
return engineConfiguration->hpfpMinAngle;
|
||||
if (strEqualCaseInsensitive(name, "hpfpPumpVolume"))
|
||||
return engineConfiguration->hpfpPumpVolume;
|
||||
if (strEqualCaseInsensitive(name, "hpfpActivationAngle"))
|
||||
return engineConfiguration->hpfpActivationAngle;
|
||||
if (strEqualCaseInsensitive(name, "hpfpPidP"))
|
||||
return engineConfiguration->hpfpPidP;
|
||||
if (strEqualCaseInsensitive(name, "hpfpPidI"))
|
||||
return engineConfiguration->hpfpPidI;
|
||||
if (strEqualCaseInsensitive(name, "hpfpTargetDecay"))
|
||||
return engineConfiguration->hpfpTargetDecay;
|
||||
if (strEqualCaseInsensitive(name, "vssFilterReciprocal"))
|
||||
return config->vssFilterReciprocal;
|
||||
return EFI_ERROR_CODE;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/luaformatter" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,6 +1,6 @@
|
|||
package com.rusefi.config.generated;
|
||||
|
||||
// this file was generated automatically by rusEFI tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Tue Dec 14 00:01:14 UTC 2021
|
||||
// this file was generated automatically by rusEFI tool ConfigDefinition.jar based on gen_config.sh integration/rusefi_config.txt Mon Dec 13 19:10:03 EST 2021
|
||||
|
||||
// by class com.rusefi.output.FileJavaFieldsConsumer
|
||||
import com.rusefi.config.*;
|
||||
|
@ -2211,7 +2211,7 @@ public class Fields {
|
|||
public static final int TS_RESPONSE_UNDERRUN = 0x80;
|
||||
public static final int TS_RESPONSE_UNRECOGNIZED_COMMAND = 0x83;
|
||||
public static final char TS_SET_LOGGER_SWITCH = 'l';
|
||||
public static final String TS_SIGNATURE = "rusEFI 2021.12.14.all.2225671866";
|
||||
public static final String TS_SIGNATURE = "rusEFI 2021.12.14.f429-discovery.2225671866";
|
||||
public static final char TS_SINGLE_WRITE_COMMAND = 'W';
|
||||
public static final char TS_TEST_COMMAND = 't';
|
||||
public static final int tunerStudioSerialSpeed_offset = 728;
|
||||
|
|
Binary file not shown.
|
@ -13,6 +13,8 @@ import static com.rusefi.output.DataLogConsumer.UNUSED;
|
|||
|
||||
@SuppressWarnings("StringConcatenationInsideStringBufferAppend")
|
||||
public class GetConfigValueConsumer extends AbstractConfigurationConsumer {
|
||||
public static final String CONFIG_ENGINE_CONFIGURATION = "config->engineConfiguration.";
|
||||
public static final String ENGINE_CONFIGURATION = "engineConfiguration.";
|
||||
private final StringBuilder content = new StringBuilder();
|
||||
private final String outputFIleName;
|
||||
|
||||
|
@ -61,8 +63,16 @@ public class GetConfigValueConsumer extends AbstractConfigurationConsumer {
|
|||
return "";
|
||||
}
|
||||
|
||||
content.append("\tif (strEqualCaseInsensitive(name, \"" + prefix + cf.getName() + "\"))\n");
|
||||
content.append("\t\treturn config->" + prefix + cf.getName() + ";\n");
|
||||
String userName = prefix + cf.getName();
|
||||
if (userName.startsWith(ENGINE_CONFIGURATION))
|
||||
userName = userName.substring(ENGINE_CONFIGURATION.length());
|
||||
content.append("\tif (strEqualCaseInsensitive(name, \"" + userName + "\"))\n");
|
||||
|
||||
String javaName = "config->" + prefix;
|
||||
if (javaName.startsWith(CONFIG_ENGINE_CONFIGURATION))
|
||||
javaName = "engineConfiguration->" + javaName.substring(CONFIG_ENGINE_CONFIGURATION.length());
|
||||
|
||||
content.append("\t\treturn " + javaName + cf.getName() + ";\n");
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue