VAG radiator control

This commit is contained in:
rusefi 2020-10-19 23:25:23 -04:00
parent 51e840eaa6
commit 580872d88e
2 changed files with 20 additions and 2 deletions

View File

@ -18,9 +18,9 @@ outputs:
GPIOD_7: "14 - GP Out 5"
GPIOD_6: "13 - GP Out 6"
# TLE8888 high current low side: VVT1 TLE8888_IN10 / TLE8888_OUT6
# default VVT TLE8888 high current low side: VVT1 TLE8888_IN10 / TLE8888_OUT6
GPIOE_9: "7 - Lowside 1"
# TLE8888 high current low side: VVT2 TLE8888_IN9 / TLE8888_OUT5
# default Idle Air Control TLE8888 high current low side: VVT2 TLE8888_IN9 / TLE8888_OUT5
GPIOE_10: "3 - Lowside 2"
# TLE8888 half bridges (pushpull, lowside, or high-low) TLE8888_IN11 / TLE8888_OUT21#91

View File

@ -68,4 +68,22 @@ void setVwPassatB6(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
engineConfiguration->injectionPins[2] = GPIOB_7;
// J6 white
engineConfiguration->injectionPins[3] = GPIOE_0;
engineConfiguration->gppwm[0].pwmFrequency = 25;
engineConfiguration->gppwm[0].loadAxis = GPPWM_FuelLoad;
// for now I just want to stop radiator whine
// todo: enable cooling!
engineConfiguration->gppwm[0].dutyIfError = 10;
for (int load = 0; load < GPPWM_LOAD_COUNT; load++) {
for (int r = 0; r < GPPWM_RPM_COUNT; r++) {
engineConfiguration->gppwm[0].table[load][r] = 10;
}
}
engineConfiguration->gppwm[0].pin = GPIOE_10; // "3 - Lowside 2"
engineConfiguration->idle.solenoidPin = GPIO_UNASSIGNED;
engineConfiguration->fanPin = GPIO_UNASSIGNED;
}