ALS UPDATE (ETB is working)

(cherry picked from commit decbf6d1615f1c15cc3e278932667a390d2539c9)
This commit is contained in:
TurboMarian 2022-12-24 14:41:34 +00:00 committed by rusefi
parent dd6b3de294
commit 64026b3d90
1 changed files with 6 additions and 0 deletions

View File

@ -320,6 +320,12 @@ expected<percent_t> EtbController::getSetpointEtb() {
percent_t targetPosition = idlePosition + getLuaAdjustment();
#if EFI_ANTILAG_SYSTEM
if (engine->antilagController.isAntilagCondition) {
targetPosition += engineConfiguration->ALSEtbAdd;
}
#endif /* EFI_ANTILAG_SYSTEM */
// Apply any adjustment that this throttle alone needs
// Clamped to +-10 to prevent anything too wild
trim = clampF(-10, getThrottleTrim(rpm, targetPosition), 10);