set default MAP estimate axis values (#96)

move to default_fuel

fixes #93
This commit is contained in:
Nathan Schulte 2023-05-04 13:30:56 -05:00 committed by GitHub
parent 2841f0ca23
commit 166a08d1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -43,8 +43,6 @@ void setDefaultBaseEngine() {
engineConfiguration->cutFuelOnHardLimit = true; engineConfiguration->cutFuelOnHardLimit = true;
engineConfiguration->cutSparkOnHardLimit = true; engineConfiguration->cutSparkOnHardLimit = true;
setTable(config->mapEstimateTable, 60);
engineConfiguration->ALSMinRPM = 400; engineConfiguration->ALSMinRPM = 400;
engineConfiguration->ALSMaxRPM = 3200; engineConfiguration->ALSMaxRPM = 3200;
engineConfiguration->ALSMaxDuration = 3.5; engineConfiguration->ALSMaxDuration = 3.5;

View File

@ -237,6 +237,10 @@ void setDefaultFuel() {
setDefaultVETable(); setDefaultVETable();
setDefaultLambdaTable(); setDefaultLambdaTable();
setRpmTableBin(config->mapEstimateRpmBins);
setLinearCurve(config->mapEstimateTpsBins, 0, 100);
setTable(config->mapEstimateTable, 60);
// -400 will close the injector just before TDC at the end of the exhaust stroke, // -400 will close the injector just before TDC at the end of the exhaust stroke,
// around the time the intake valve opens. // around the time the intake valve opens.
setTable(config->injectionPhase, -400.0f); setTable(config->injectionPhase, -400.0f);