rusefi/unit_tests/tests/util/engine_config.cpp

221 lines
6.4 KiB
C++

//
// 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<switch_input_pin_e> value) {
m_launchActivatePin = value;
return *this;
}
EngineConfig EngineConfig::setLaunchActivateInverted(const std::optional<bool> value) {
m_launchActivateInverted = value;
return *this;
}
EngineConfig EngineConfig::setLaunchControlEnabled(const std::optional<bool> value) {
m_launchControlEnabled = value;
return *this;
}
EngineConfig EngineConfig::setLaunchRpm(const std::optional<int> value) {
m_launchRpm = value;
return *this;
}
EngineConfig EngineConfig::setLaunchRpmWindow(const std::optional<int> value) {
m_launchRpmWindow = value;
return *this;
}
EngineConfig EngineConfig::setLaunchCorrectionsEndRpm(const std::optional<int> value) {
m_launchCorrectionsEndRpm = value;
return *this;
}
EngineConfig EngineConfig::setIgnitionRetardEnable(const std::optional<bool> value) {
m_ignitionRetardEnable = value;
return *this;
}
EngineConfig EngineConfig::setIgnitionRetard(const std::optional<float> value) {
m_ignitionRetard = value;
return *this;
}
EngineConfig EngineConfig::setSmoothRetardMode(const std::optional<bool> value) {
m_smoothRetardMode = value;
return *this;
}
EngineConfig EngineConfig::setEnableIgnitionCut(const std::optional<bool> value) {
m_enableIgnitionCut = value;
return *this;
}
EngineConfig EngineConfig::setInitialIgnitionCut(const std::optional<int> value) {
m_initialIgnitionCut = value;
return *this;
}
EngineConfig EngineConfig::setFinalIgnitionCutBeforeLaunch(const std::optional<int> value) {
m_finalIgnitionCutBeforeLaunch = value;
return *this;
}
EngineConfig EngineConfig::setTorqueReductionEnabled(const std::optional<bool> value) {
m_isTorqueReductionEnabled = value;
return *this;
}
EngineConfig EngineConfig::setTorqueReductionActivationMode(
const std::optional<torqueReductionActivationMode_e> value
) {
m_torqueReductionActivationMode = value;
return *this;
}
EngineConfig EngineConfig::setTorqueReductionTriggerPin(const std::optional<switch_input_pin_e> value) {
m_torqueReductionTriggerPin = value;
return *this;
}
EngineConfig EngineConfig::setTorqueReductionTriggerPinInverted(const std::optional<bool> value) {
m_torqueReductionTriggerPinInverted = value;
return *this;
}
EngineConfig EngineConfig::setLimitTorqueReductionTime(std::optional<bool> value) {
m_limitTorqueReductionTime = value;
return *this;
}
EngineConfig EngineConfig::setTorqueReductionTime(const std::optional<float> value) {
m_torqueReductionTime = value;
return *this;
}
EngineConfig EngineConfig::setTorqueReductionArmingRpm(std::optional<float> value) {
m_torqueReductionArmingRpm = value;
return *this;
}
EngineConfig EngineConfig::setTorqueReductionArmingApp(std::optional<float> value) {
m_torqueReductionArmingApp = value;
return *this;
}
EngineConfig EngineConfig::setTorqueReductionIgnitionCut(const std::optional<int8_t> value) {
m_torqueReductionIgnitionCut = value;
return *this;
}
EngineConfig EngineConfig::setTorqueReductionIgnitionRetard(const std::optional<float> value) {
m_torqueReductionIgnitionRetard = value;
return *this;
}
EngineConfig EngineConfig::setFuelPressureSensorMode(std::optional<fuel_pressure_sensor_mode_e> value) {
m_fuelPressureSensorMode = value;
return *this;
}
EngineConfig EngineConfig::setInjectorFlowAsMassFlow(const std::optional<bool> injectorFlowAsMassFlow) {
m_injectorFlowAsMassFlow = injectorFlowAsMassFlow;
return *this;
}
EngineConfig EngineConfig::setInjectorFlow(const std::optional<float> flow) {
m_injectorFlow = flow;
return *this;
}
EngineConfig EngineConfig::setInjectorBattLagCorr(const std::optional<BattLagCorrCurve> battLagCorr) {
m_injectorBattLagCorrCurve = battLagCorr;
return *this;
}
EngineConfig EngineConfig::setFuelReferencePressure(const std::optional<float> value) {
m_fuelReferencePressure = value;
return *this;
}
EngineConfig EngineConfig::setInjectorCompensationMode(const std::optional<injector_compensation_mode_e> value) {
m_injectorCompensationMode = value;
return *this;
}
EngineConfig EngineConfig::setInjectorSecondaryFlow(const std::optional<float> flow) {
m_injectorSecondaryFlow = flow;
return *this;
}
EngineConfig EngineConfig::setInjectorSecondaryBattLagCorr(const std::optional<BattLagCorrCurve> battLagCorr) {
m_injectorSecondaryBattLagCorrCurve = battLagCorr;
return *this;
}
EngineConfig EngineConfig::setStagedInjectionEnabled(const std::optional<bool> value) {
m_isStagedInjectionEnabled = value;
return *this;
}
EngineConfig EngineConfig::setSecondaryInjectorFuelReferencePressure(const std::optional<float> value) {
m_secondaryInjectorFuelReferencePressure = value;
return *this;
}
EngineConfig EngineConfig::setSecondaryInjectorCompensationMode(
const std::optional<injector_compensation_mode_e> value
) {
m_secondaryInjectorCompensationMode = value;
return *this;
}
EngineConfig EngineConfig::setNitrousControlEnabled(const std::optional<bool> value) {
m_nitrousControlEnabled = value;
return *this;
}
EngineConfig EngineConfig::setNitrousControlArmingMethod(const std::optional<nitrous_arming_method_e> value) {
m_nitrousControlArmingMethod = value;
return *this;
}
EngineConfig EngineConfig::setNitrousControlTriggerPin(const std::optional<switch_input_pin_e> value) {
m_nitrousControlTriggerPin = value;
return *this;
}
EngineConfig EngineConfig::setNitrousControlTriggerPinInverted(const std::optional<bool> value) {
m_nitrousControlTriggerPinInverted = value;
return *this;
}
EngineConfig EngineConfig::setNitrousControlTriggerPinMode(const std::optional<pin_input_mode_e> value) {
m_nitrousControlTriggerPinMode = value;
return *this;
}
EngineConfig EngineConfig::setNitrousLuaGauge(const std::optional<lua_gauge_e> value) {
m_nitrousLuaGauge = value;
return *this;
}
EngineConfig EngineConfig::setNitrousLuaGaugeMeaning(const std::optional<lua_gauge_meaning_e> value) {
m_nitrousLuaGaugeMeaning = value;
return *this;
}
EngineConfig EngineConfig::setNitrousLuaGaugeArmingValue(const std::optional<float> value) {
m_nitrousLuaGaugeArmingValue = value;
return *this;
}