throttleIntent in ALS timing logic

This commit is contained in:
rusefillc 2023-02-06 17:14:21 -05:00
parent 221f2584ca
commit 5bd976dcca
1 changed files with 2 additions and 2 deletions

View File

@ -54,10 +54,10 @@ static angle_t getRunningAdvance(int rpm, float engineLoad) {
#if EFI_ANTILAG_SYSTEM
if (engine->antilagController.isAntilagCondition) {
auto tps = Sensor::get(SensorType::Tps1);
float throttleIntent = Sensor::getOrZero(SensorType::DriverThrottleIntent);
engine->antilagController.timingALSCorrection = interpolate3d(
config->ALSTimingRetardTable,
config->alsIgnRetardLoadBins, tps.Value,
config->alsIgnRetardLoadBins, throttleIntent,
config->alsIgnRetardrpmBins, rpm
);
advanceAngle += engine->antilagController.timingALSCorrection;