set default MAP estimate axis values (#96)

move to default_fuel

fixes #93

(cherry picked from commit 166a08d1b5e4b637a809f59844d0dd32f8820a3d)
This commit is contained in:
Nathan Schulte 2023-05-04 14:30:56 -04:00 committed by rusefillc
parent 4c7e6af16a
commit 7b4f49ace6
2 changed files with 4 additions and 2 deletions

View File

@ -58,8 +58,6 @@ void setDefaultBaseEngine() {
engineConfiguration->cutFuelOnHardLimit = true;
engineConfiguration->cutSparkOnHardLimit = true;
setTable(config->mapEstimateTable, 60);
// engineConfiguration->totalGearsCount = 5;
// engineConfiguration->gearRatio[0] = 3.35f;
// engineConfiguration->gearRatio[1] = 1.99f;

View File

@ -237,6 +237,10 @@ void setDefaultFuel() {
setDefaultVETable();
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,
// around the time the intake valve opens.
setTable(config->injectionPhase, -400.0f);