// // Created by kifir on 11/18/24. // #include "pch.h" #include "engine_config.h" EngineConfig EngineConfig::clone() const { 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; }