better defaults

This commit is contained in:
Matthew Kennedy 2023-11-16 22:45:31 -08:00
parent 79b955457b
commit d274e98abc
4 changed files with 33 additions and 0 deletions

View File

@ -44,6 +44,7 @@ Release template (copy/paste this for new release):
- Allow brief operation over 100% injector duty cycle and add configurable duty cycle limits #215
- Buttons to bump VVT targets for testing/PID tuning
- Improved serial port selection for FOME console and firmware update
- Better default configuration values for some advanced features
### Fixed
- Improved bench test resolution (more usable for testing injectors, dwell, etc)

View File

@ -40,6 +40,10 @@ void setDefaultBaseEngine() {
engineConfiguration->rpmHardLimitHyst = 50;
engineConfiguration->cutFuelOnHardLimit = true;
engineConfiguration->cutSparkOnHardLimit = false;
engineConfiguration->etbRevLimitRange = 250;
// CLT RPM limit table - just the X axis
copyArray(engineConfiguration->cltRevLimitRpmBins, { -20, 0, 40, 80 });
engineConfiguration->ALSMinRPM = 400;
engineConfiguration->ALSMaxRPM = 3200;

View File

@ -86,6 +86,20 @@ static void setDefaultVETable() {
// Default baro table is all 1.0, we can't recommend a reasonable default here
setTable(config->baroCorrTable, 1);
// Give default axes for cylinder trim tables
copyArray(config->fuelTrimRpmBins, { 1000, 3000, 5000, 7000 });
copyArray(config->fuelTrimLoadBins, { 20, 50, 80, 100 });
// Default axes for VE blends
for (int i = 0; i < efi::size(config->veBlends); i++) {
auto& blend = config->veBlends[i];
setLinearCurve(blend.loadBins, 0, 100, 10);
setLinearCurve(blend.rpmBins, 0, 7000);
setLinearCurve(blend.blendBins, 0, 100);
setLinearCurve(blend.blendValues, 0, 100);
}
}
static void setDefaultFuelCutParameters() {

View File

@ -100,4 +100,18 @@ void setDefaultIgnition() {
// IAT correction
setDefaultIatTimingCorrection();
// Give default axes for cylinder trim tables
copyArray(config->ignTrimRpmBins, { 1000, 3000, 5000, 7000 });
copyArray(config->ignTrimLoadBins, { 20, 50, 80, 100 });
// Default axes for VE blends
for (int i = 0; i < efi::size(config->ignBlends); i++) {
auto& blend = config->ignBlends[i];
setLinearCurve(blend.loadBins, 0, 100, 10);
setLinearCurve(blend.rpmBins, 0, 7000);
setLinearCurve(blend.blendBins, 0, 100);
setLinearCurve(blend.blendValues, 0, 100);
}
}