Skip to content

Commit

Permalink
set default MAP estimate axis values (#96)
Browse files Browse the repository at this point in the history
move to default_fuel

fixes #93
  • Loading branch information
nmschulte committed May 4, 2023
1 parent 2841f0c commit 166a08d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions firmware/controllers/algo/defaults/default_base_engine.cpp
Expand Up @@ -43,8 +43,6 @@ void setDefaultBaseEngine() {
engineConfiguration->cutFuelOnHardLimit = true;
engineConfiguration->cutSparkOnHardLimit = true;

setTable(config->mapEstimateTable, 60);

engineConfiguration->ALSMinRPM = 400;
engineConfiguration->ALSMaxRPM = 3200;
engineConfiguration->ALSMaxDuration = 3.5;
Expand Down
4 changes: 4 additions & 0 deletions firmware/controllers/algo/defaults/default_fuel.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 166a08d

Please sign in to comment.