Skip to content

Commit

Permalink
idle ve table dot follows Y axis override
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Oct 3, 2024
1 parent 3ffb6b4 commit 516fc60
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion firmware/controllers/algo/airmass/airmass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ float AirmassVeModelBase::getVe(float rpm, float load, bool postState) const {

percent_t ve = m_veTable ? m_veTable->getValue(rpm, load) : getVeImpl(rpm, load);

float idleVeLoad = load;

#if EFI_IDLE_CONTROL
auto tps = Sensor::get(SensorType::Tps1);
// get VE from the separate table for Idle if idling
if (engine->module<IdleController>()->isIdlingOrTaper() &&
tps && engineConfiguration->useSeparateVeForIdle) {
float idleVeLoad = getVeLoadAxis(engineConfiguration->idleVeOverrideMode, load);
idleVeLoad = getVeLoadAxis(engineConfiguration->idleVeOverrideMode, load);

percent_t idleVe = interpolate3d(
config->idleVeTable,
Expand Down Expand Up @@ -65,6 +67,7 @@ float AirmassVeModelBase::getVe(float rpm, float load, bool postState) const {
if (postState) {
engine->engineState.currentVe = ve;
engine->engineState.veTableYAxis = load;
engine->engineState.idleVeTableYAxis = idleVeLoad;
}

return ve * PERCENT_DIV;
Expand Down
1 change: 1 addition & 0 deletions firmware/controllers/algo/engine_state.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ struct_no_prefix engine_state_s
float ignitionLoad;@@GAUGE_NAME_IGNITION_LOAD@@

uint16_t autoscale veTableYAxis;;"%",{1/100}, 0, 0, 0, 0
uint16_t autoscale idleVeTableYAxis;;"%",{1/100}, 0, 0, 0, 0

uint16_t autoscale mapAveragingDuration;;"deg", 0.01, 0, 0, 0, 0

Expand Down
2 changes: 1 addition & 1 deletion firmware/tunerstudio/tunerstudio.template.ini
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ curve = 32Curve, "3-2 Shift Solenoid Percent by Speed"
table = idleVeTableTbl, idleVeTable, "Idle VE"
xyLabels = "RPM", "load"
xBins = idleVeRpmBins, RPMValue
yBins = idleVeLoadBins, veTableYAxis
yBins = idleVeLoadBins, idleVeTableYAxis
zBins = idleVeTable
gridOrient = 250, 0, 340 ; Space 123 rotation of grid in degrees.
upDownLabel = "(RICHER)", "(LEANER)"
Expand Down

0 comments on commit 516fc60

Please sign in to comment.