Skip to content

Commit

Permalink
move DFCO configs to the right spot, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Sep 13, 2024
1 parent 16e6529 commit 5aca8e6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions firmware/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ or
- Dropdown selector for popular gearbox ratios (#358, thank you @alrijleh and @nmschulte!)
- Add two more aux linear sensors #476
- Support wasted spark on odd cylinder count and odd-fire engines. Improves startup and allows running without a cam sensor!
- Add an option for the DFCO MAP threshold to use a table dependent upon RPM #485 (thank you @alrijleh!)

### Fixed
- Improve performance with Lua CAN reception of a high volume of frames
Expand Down
6 changes: 3 additions & 3 deletions firmware/controllers/algo/defaults/default_fuel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ static void setDefaultFuelCutParameters() {
engineConfiguration->coastingFuelCutTps = 2;
engineConfiguration->coastingFuelCutMap = 30;
engineConfiguration->coastingFuelCutClt = 60;
engineConfiguration->useTableForDfcoMap = 0;
copyArray(engineConfiguration->dfcoMapRpmValuesBins, { 1500, 2000, 3500, 5000 });
copyArray(engineConfiguration->dfcoMapRpmValues, { 30, 25, 20, 18 });

copyArray(config->dfcoMapRpmValuesBins, { 1500, 2000, 3500, 5000 });
copyArray(config->dfcoMapRpmValues, { 30, 25, 20, 18 });
}

static void setDefaultStftSettings() {
Expand Down
2 changes: 1 addition & 1 deletion firmware/controllers/algo/fuel/dfco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ bool DfcoController::getState() const {
float vss = Sensor::getOrZero(SensorType::VehicleSpeed);

float mapThreshold = engineConfiguration->useTableForDfcoMap ?
interpolate2d(rpm, engineConfiguration->dfcoMapRpmValuesBins, engineConfiguration->dfcoMapRpmValues) :
interpolate2d(rpm, config->dfcoMapRpmValuesBins, config->dfcoMapRpmValues) :
engineConfiguration->coastingFuelCutMap;

bool mapActivate = map.value_or(0) < mapThreshold;
Expand Down
10 changes: 5 additions & 5 deletions firmware/integration/rusefi_config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,8 @@ bit is_enabled_spi_2
bit pauseEtbControl;Disable the electronic throttle motor and DC idle motor for testing.\nThis mode is for testing ETB/DC idle position sensors, etc without actually driving the throttle.
bit alignEngineSnifferAtTDC
bit enableAemXSeries;AEM X-Series or rusEFI Wideband
! 'enableAemXSeries' is the 32nd bit here, you would need another bit region if more bits are desired
bit useTableForDfcoMap,"Table","Fixed";Fixed: MAP threshold cut fuel when conditions are met\nTable: Use a curve to vary the MAP threshold based on engine RPM


brain_input_pin_e[LOGIC_ANALYZER_CHANNEL_COUNT iterate] logicAnalyzerPins;

Expand Down Expand Up @@ -1248,11 +1249,7 @@ tChargeMode_e tChargeMode;
int16_t coastingFuelCutClt;Fuel cutoff is disabled when the engine is cold.;"C", 1, 0, -100, 100, 0

int16_t pidExtraForLowRpm;Increases PID reaction for RPM<target by adding extra percent to PID-error;"%", 1, 0, 0, 100, 0
bit useTableForDfcoMap,"Table","Fixed";Fixed: MAP threshold cut fuel when conditions are met\nTable: Use a curve to vary the MAP threshold based on engine RPM
uint8_t[DFCO_RPM_MAP_TABLE] autoscale dfcoMapRpmValuesBins;;"RPM", 100, 0, 0, 17500, 0
uint8_t[DFCO_RPM_MAP_TABLE] autoscale dfcoMapRpmValues;DFCO will activate when operating below this curve. Used to allow a higher threshold at low RPM where less vaccuum is generated;"MAP", 1, 0, 0, 50, 0
int16_t coastingFuelCutMap;MAP value above which fuel injection is re-enabled.;"kPa", 1, 0, 0, 250, 0


linear_sensor_s highPressureFuel;
linear_sensor_s lowPressureFuel;
Expand Down Expand Up @@ -1732,6 +1729,9 @@ uint8_t[DWELL_CURVE_SIZE] autoscale dwellVoltageCorrValues;;"multiplier", 0.02,
uint8_t[8] autoscale minimumOilPressureBins;;"RPM", 100, 0, 0, 25000, 0
uint8_t[8] autoscale minimumOilPressureValues;;"kPa", 10, 0, 0, 1000, 0

uint8_t[DFCO_RPM_MAP_TABLE] autoscale dfcoMapRpmValuesBins;;"RPM", 100, 0, 0, 17500, 0
uint8_t[DFCO_RPM_MAP_TABLE] autoscale dfcoMapRpmValues;DFCO will activate when operating below this curve. Used to allow a higher threshold at low RPM where less vaccuum is generated;"MAP", 1, 0, 0, 50, 0

end_struct

! Pedal Position Sensor
Expand Down

0 comments on commit 5aca8e6

Please sign in to comment.