pedal calibration into status message
This commit is contained in:
parent
b51e79357e
commit
7922d79cde
|
@ -178,6 +178,7 @@ void grabPedalIsUp() {
|
||||||
#if EFI_PROD_CODE
|
#if EFI_PROD_CODE
|
||||||
float voltage = getVoltageDivided("pPS", engineConfiguration->throttlePedalPositionAdcChannel);
|
float voltage = getVoltageDivided("pPS", engineConfiguration->throttlePedalPositionAdcChannel);
|
||||||
engineConfiguration->throttlePedalUpVoltage = voltage;
|
engineConfiguration->throttlePedalUpVoltage = voltage;
|
||||||
|
printTPSInfo();
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,6 +186,7 @@ void grabPedalIsWideOpen() {
|
||||||
#if EFI_PROD_CODE
|
#if EFI_PROD_CODE
|
||||||
float voltage = getVoltageDivided("pPS", engineConfiguration->throttlePedalPositionAdcChannel);
|
float voltage = getVoltageDivided("pPS", engineConfiguration->throttlePedalPositionAdcChannel);
|
||||||
engineConfiguration->throttlePedalWOTVoltage = voltage;
|
engineConfiguration->throttlePedalWOTVoltage = voltage;
|
||||||
|
printTPSInfo();
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -417,6 +417,14 @@ void printTPSInfo(void) {
|
||||||
|
|
||||||
scheduleMsg(&logger, "tps min (closed) %d/max (full) %d v=%.2f @%s", engineConfiguration->tpsMin, engineConfiguration->tpsMax,
|
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));
|
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 */
|
#endif /* EFI_PROD_CODE */
|
||||||
scheduleMsg(&logger, "current 10bit=%d value=%.2f rate=%.2f", getTPS10bitAdc(), getTPS(PASS_ENGINE_PARAMETER_SIGNATURE),
|
scheduleMsg(&logger, "current 10bit=%d value=%.2f rate=%.2f", getTPS10bitAdc(), getTPS(PASS_ENGINE_PARAMETER_SIGNATURE),
|
||||||
getTpsRateOfChange());
|
getTpsRateOfChange());
|
||||||
|
|
Loading…
Reference in New Issue