pedal calibration into status message

This commit is contained in:
rusefi 2019-09-02 22:58:36 -04:00
parent b51e79357e
commit 7922d79cde
2 changed files with 10 additions and 0 deletions

View File

@ -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 */
}

View File

@ -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());