only:boardAdjustEtbTarget

This commit is contained in:
Andrey 2024-07-06 13:02:45 -04:00
parent b33a4bacff
commit 472ad204ca
1 changed files with 5 additions and 1 deletions

View File

@ -279,6 +279,10 @@ float getSanitizedPedal() {
return clampPercentValue(pedalPosition.value_or(0)); return clampPercentValue(pedalPosition.value_or(0));
} }
BOARD_WEAK float boardAdjustEtbTarget(float currentEtbTarget) {
return currentEtbTarget;
}
expected<percent_t> EtbController::getSetpointEtb() { expected<percent_t> EtbController::getSetpointEtb() {
// Autotune runs with 50% target position // Autotune runs with 50% target position
if (m_isAutotune) { if (m_isAutotune) {
@ -309,7 +313,7 @@ expected<percent_t> EtbController::getSetpointEtb() {
// 100% target from table -> 100% target position // 100% target from table -> 100% target position
targetWithIdlePosition = interpolateClamped(0, etbIdleAddition, 100, 100, etbCurrentTarget); targetWithIdlePosition = interpolateClamped(0, etbIdleAddition, 100, 100, etbCurrentTarget);
percent_t targetPosition = targetWithIdlePosition + getLuaAdjustment(); percent_t targetPosition = boardAdjustEtbTarget(targetWithIdlePosition + getLuaAdjustment());
#if EFI_ANTILAG_SYSTEM #if EFI_ANTILAG_SYSTEM
if (engine->antilagController.isAntilagCondition) { if (engine->antilagController.isAntilagCondition) {