CANbus front to rear axle speed slip rate gauge on Nissan 350z and modern Hyundai/Kia fix #5842

This commit is contained in:
rusefillc 2023-12-31 19:00:27 -05:00
parent 10b3948415
commit c4729e55d2
2 changed files with 7 additions and 2 deletions

View File

@ -40,6 +40,7 @@ Release template (copy/paste this for new release):
- Make TPS/PPS split threshold configurable #5620
- Mitsubishi 6G72 CAM Trigger Pattern #5593
- 3/0 trigger #5788
- CANbus front to rear axle speed slip rate gauge on Nissan 350z and modern Hyundai/Kia #5842
### Fixed
- Changing idle stepper settings causes kernel panic

View File

@ -123,7 +123,9 @@ float processHyundai(const CANRxFrame& frame, efitick_t nowNt) {
int frontAxle = (frontL + frontR);
int rearAxle = (rearL + rearR);
efiPrintf("processHyundai: frontL %d rearL %d", frontL, rearL);
if (engineConfiguration->verboseCan) {
efiPrintf("processHyundai: frontL %d rearL %d", frontL, rearL);
}
wheelSlipRatio.setValidValue(SLIP_RATIO(frontAxle, rearAxle), nowNt);
@ -160,7 +162,9 @@ static void processNissanSecondVss(const CANRxFrame& frame, efitick_t nowNt) {
int rearAxle = left + right;
efiPrintf("processHyundai: front %d rear %d", nissanFrontAxle, rearAxle);
if (engineConfiguration->verboseCan) {
efiPrintf("processNissan: front %d rear %d", nissanFrontAxle, rearAxle);
}
wheelSlipRatio.setValidValue(SLIP_RATIO(nissanFrontAxle, rearAxle), nowNt);
}