diff --git a/firmware/controllers/sensors/tps.cpp b/firmware/controllers/sensors/tps.cpp index 42df022ec9..0b30a4ed9a 100644 --- a/firmware/controllers/sensors/tps.cpp +++ b/firmware/controllers/sensors/tps.cpp @@ -178,6 +178,7 @@ void grabPedalIsUp() { #if EFI_PROD_CODE float voltage = getVoltageDivided("pPS", engineConfiguration->throttlePedalPositionAdcChannel); engineConfiguration->throttlePedalUpVoltage = voltage; + printTPSInfo(); #endif /* EFI_PROD_CODE */ } @@ -185,6 +186,7 @@ void grabPedalIsWideOpen() { #if EFI_PROD_CODE float voltage = getVoltageDivided("pPS", engineConfiguration->throttlePedalPositionAdcChannel); engineConfiguration->throttlePedalWOTVoltage = voltage; + printTPSInfo(); #endif /* EFI_PROD_CODE */ } diff --git a/firmware/controllers/settings.cpp b/firmware/controllers/settings.cpp index 03b4e020a1..6d3eaa9277 100644 --- a/firmware/controllers/settings.cpp +++ b/firmware/controllers/settings.cpp @@ -417,6 +417,14 @@ void printTPSInfo(void) { scheduleMsg(&logger, "tps min (closed) %d/max (full) %d v=%.2f @%s", engineConfiguration->tpsMin, engineConfiguration->tpsMax, getTPSVoltage(PASS_ENGINE_PARAMETER_SIGNATURE), getPinNameByAdcChannel("tps", engineConfiguration->tps1_1AdcChannel, pinNameBuffer)); + + if (hasPedalPositionSensor()) { + scheduleMsg(&logger, "pedal up %f / down %f", + engineConfiguration->throttlePedalUpVoltage, + engineConfiguration->throttlePedalWOTVoltage); + } + + #endif /* EFI_PROD_CODE */ scheduleMsg(&logger, "current 10bit=%d value=%.2f rate=%.2f", getTPS10bitAdc(), getTPS(PASS_ENGINE_PARAMETER_SIGNATURE), getTpsRateOfChange());