// // Created by kifir on 11/18/24. // #include "pch.h" #include "engine_config.h" EngineConfig EngineConfig::clone() const { return *this; } EngineConfig EngineConfig::setClutchDownPin(const std::optional value) { m_clutchDownPin = value; return *this; } EngineConfig EngineConfig::setClutchDownPinInverted(const std::optional value) { m_clutchDownPinInverted = value; return *this; } EngineConfig EngineConfig::setClutchUpPin(const std::optional value) { m_clutchUpPin = value; return *this; } EngineConfig EngineConfig::setClutchUpPinInverted(const std::optional value) { m_clutchUpPinInverted = value; return *this; } EngineConfig EngineConfig::setLaunchActivatePin(const std::optional value) { m_launchActivatePin = value; return *this; } EngineConfig EngineConfig::setLaunchActivateInverted(const std::optional value) { m_launchActivateInverted = value; return *this; } EngineConfig EngineConfig::setLaunchControlEnabled(const std::optional value) { m_launchControlEnabled = value; return *this; } EngineConfig EngineConfig::setLaunchRpm(const std::optional value) { m_launchRpm = value; return *this; } EngineConfig EngineConfig::setLaunchRpmWindow(const std::optional value) { m_launchRpmWindow = value; return *this; } EngineConfig EngineConfig::setLaunchCorrectionsEndRpm(const std::optional value) { m_launchCorrectionsEndRpm = value; return *this; } EngineConfig EngineConfig::setIgnitionRetardEnable(const std::optional value) { m_ignitionRetardEnable = value; return *this; } EngineConfig EngineConfig::setIgnitionRetard(const std::optional value) { m_ignitionRetard = value; return *this; } EngineConfig EngineConfig::setSmoothRetardMode(const std::optional value) { m_smoothRetardMode = value; return *this; } EngineConfig EngineConfig::setEnableIgnitionCut(const std::optional value) { m_enableIgnitionCut = value; return *this; } EngineConfig EngineConfig::setInitialIgnitionCut(const std::optional value) { m_initialIgnitionCut = value; return *this; } EngineConfig EngineConfig::setFinalIgnitionCutBeforeLaunch(const std::optional value) { m_finalIgnitionCutBeforeLaunch = value; return *this; } EngineConfig EngineConfig::setTorqueReductionEnabled(const std::optional value) { m_isTorqueReductionEnabled = value; return *this; } EngineConfig EngineConfig::setTorqueReductionActivationMode( const std::optional value ) { m_torqueReductionActivationMode = value; return *this; } EngineConfig EngineConfig::setTorqueReductionTriggerPin(const std::optional value) { m_torqueReductionTriggerPin = value; return *this; } EngineConfig EngineConfig::setTorqueReductionTriggerPinInverted(const std::optional value) { m_torqueReductionTriggerPinInverted = value; return *this; } EngineConfig EngineConfig::setLimitTorqueReductionTime(std::optional value) { m_limitTorqueReductionTime = value; return *this; } EngineConfig EngineConfig::setTorqueReductionTime(const std::optional value) { m_torqueReductionTime = value; return *this; } EngineConfig EngineConfig::setTorqueReductionArmingRpm(std::optional value) { m_torqueReductionArmingRpm = value; return *this; } EngineConfig EngineConfig::setTorqueReductionArmingApp(std::optional value) { m_torqueReductionArmingApp = value; return *this; } EngineConfig EngineConfig::setTorqueReductionIgnitionCut(const std::optional value) { m_torqueReductionIgnitionCut = value; return *this; } EngineConfig EngineConfig::setTorqueReductionIgnitionRetard(const std::optional value) { m_torqueReductionIgnitionRetard = value; return *this; } EngineConfig EngineConfig::setFuelPressureSensorMode(std::optional value) { m_fuelPressureSensorMode = value; return *this; } EngineConfig EngineConfig::setInjectorFlowAsMassFlow(const std::optional injectorFlowAsMassFlow) { m_injectorFlowAsMassFlow = injectorFlowAsMassFlow; return *this; } EngineConfig EngineConfig::setInjectorFlow(const std::optional flow) { m_injectorFlow = flow; return *this; } EngineConfig EngineConfig::setInjectorBattLagCorr(const std::optional battLagCorr) { m_injectorBattLagCorrCurve = battLagCorr; return *this; } EngineConfig EngineConfig::setFuelReferencePressure(const std::optional value) { m_fuelReferencePressure = value; return *this; } EngineConfig EngineConfig::setInjectorCompensationMode(const std::optional value) { m_injectorCompensationMode = value; return *this; } EngineConfig EngineConfig::setInjectorSecondaryFlow(const std::optional flow) { m_injectorSecondaryFlow = flow; return *this; } EngineConfig EngineConfig::setInjectorSecondaryBattLagCorr(const std::optional battLagCorr) { m_injectorSecondaryBattLagCorrCurve = battLagCorr; return *this; } EngineConfig EngineConfig::setStagedInjectionEnabled(const std::optional value) { m_isStagedInjectionEnabled = value; return *this; } EngineConfig EngineConfig::setSecondaryInjectorFuelReferencePressure(const std::optional value) { m_secondaryInjectorFuelReferencePressure = value; return *this; } EngineConfig EngineConfig::setSecondaryInjectorCompensationMode( const std::optional value ) { m_secondaryInjectorCompensationMode = value; return *this; } EngineConfig EngineConfig::setNitrousControlEnabled(const std::optional value) { m_nitrousControlEnabled = value; return *this; } EngineConfig EngineConfig::setNitrousControlArmingMethod(const std::optional value) { m_nitrousControlArmingMethod = value; return *this; } EngineConfig EngineConfig::setNitrousControlTriggerPin(const std::optional value) { m_nitrousControlTriggerPin = value; return *this; } EngineConfig EngineConfig::setNitrousControlTriggerPinInverted(const std::optional value) { m_nitrousControlTriggerPinInverted = value; return *this; } EngineConfig EngineConfig::setNitrousControlTriggerPinMode(const std::optional value) { m_nitrousControlTriggerPinMode = value; return *this; } EngineConfig EngineConfig::setNitrousLuaGauge(const std::optional value) { m_nitrousLuaGauge = value; return *this; } EngineConfig EngineConfig::setNitrousLuaGaugeMeaning(const std::optional value) { m_nitrousLuaGaugeMeaning = value; return *this; } EngineConfig EngineConfig::setNitrousLuaGaugeArmingValue(const std::optional value) { m_nitrousLuaGaugeArmingValue = value; return *this; } EngineConfig EngineConfig::setNitrousMinimumVehicleSpeed(const std::optional value) { m_nitrousMinimumVehicleSpeed = value; return *this; } EngineConfig EngineConfig::setNitrousMinimumTps(const std::optional value) { m_nitrousMinimumTps = value; return *this; } EngineConfig EngineConfig::setNitrousMinimumClt(const std::optional value) { m_nitrousMinimumClt = value; return *this; } EngineConfig EngineConfig::setNitrousMaximumMap(const std::optional value) { m_nitrousMaximumMap = value; return *this; } EngineConfig EngineConfig::setNitrousMaximumAfr(const std::optional value) { m_nitrousMaximumAfr = value; return *this; } EngineConfig EngineConfig::setNitrousActivationRpm(const std::optional value) { m_nitrousActivationRpm = value; return *this; } EngineConfig EngineConfig::setNitrousDeactivationRpm(const std::optional value) { m_nitrousDeactivationRpm = value; return *this; } EngineConfig EngineConfig::setNitrousDeactivationRpmWindow(const std::optional value) { m_nitrousDeactivationRpmWindow = value; return *this; } EngineConfig EngineConfig::setNitrousFuelAdderPercent(const std::optional value) { m_nitrousFuelAdderPercent = value; return *this; } EngineConfig EngineConfig::setNitrousIgnitionRetard(const std::optional value) { m_nitrousIgnitionRetard = value; return *this; }