refactoring
This commit is contained in:
parent
eb4ceda52b
commit
8f5895321c
|
@ -123,7 +123,7 @@ void setFordAspireEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
// set cranking_timing_angle 37
|
||||
engineConfiguration->crankingTimingAngle = -37;
|
||||
|
||||
setSingleCoilDwell(engineConfiguration);
|
||||
setSingleCoilDwell(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
engineConfiguration->ignitionMode = IM_ONE_COIL;
|
||||
setOperationMode(engineConfiguration, FOUR_STROKE_CAM_SENSOR);
|
||||
engineConfiguration->useOnlyRisingEdgeForTrigger = true;
|
||||
|
|
|
@ -155,7 +155,7 @@ void setFordEscortGt(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
setWholeFuelMap(5 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||
setAfrMap(config->afrTable, 13.5);
|
||||
|
||||
setSingleCoilDwell(engineConfiguration);
|
||||
setSingleCoilDwell(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
engineConfiguration->ignitionMode = IM_ONE_COIL;
|
||||
|
||||
boardConfiguration->triggerSimulatorPinModes[0] = OM_OPENDRAIN;
|
||||
|
|
|
@ -202,6 +202,7 @@ void incrementGlobalConfigurationVersion(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
|
||||
/**
|
||||
* @brief Sets the same dwell time across the whole getRpm() range
|
||||
* set dwell X
|
||||
*/
|
||||
void setConstantDwell(floatms_t dwellMs DECLARE_CONFIG_PARAMETER_SUFFIX) {
|
||||
for (int i = 0; i < DWELL_CURVE_SIZE; i++) {
|
||||
|
|
|
@ -80,7 +80,10 @@ float getEngineLoadT(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
}
|
||||
}
|
||||
|
||||
void setSingleCoilDwell(engine_configuration_s *engineConfiguration) {
|
||||
/**
|
||||
* see also setConstantDwell
|
||||
*/
|
||||
void setSingleCoilDwell(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
for (int i = 0; i < DWELL_CURVE_SIZE; i++) {
|
||||
engineConfiguration->sparkDwellRpmBins[i] = i + 1;
|
||||
engineConfiguration->sparkDwellValues[i] = 4;
|
||||
|
|
|
@ -61,7 +61,7 @@ void setFuelLoadBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX);
|
|||
void setTimingRpmBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX);
|
||||
void setTimingLoadBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX);
|
||||
|
||||
void setSingleCoilDwell(engine_configuration_s *engineConfiguration);
|
||||
void setSingleCoilDwell(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
// we combine trigger-defined triggerShape.tdcPosition with user-defined CONFIG(globalTriggerAngleOffset)
|
||||
// expectation is that for well-known triggers CONFIG(globalTriggerAngleOffset) would usually be zero
|
||||
|
|
Loading…
Reference in New Issue