This commit is contained in:
rusefillc 2022-01-09 01:29:39 -05:00
parent 7d31d8c5e6
commit bd69941ec4
2 changed files with 17 additions and 3 deletions

View File

@ -689,9 +689,20 @@ void mreBoardNewTest() {
}
static const float hardCodedHpfpLobeProfileQuantityBins[16] = {0.0, 1.0, 4.5, 9.5,
16.5, 25.0, 34.5, 45.0 ,
55.0, 65.5, 75.0, 83.5,
90.5, 95.5, 99.0, 100.0};
static const float hardCodedHpfpLobeProfileAngle[16] = {0.0, 7.5, 16.5, 24.0,
32.0 , 40.0, 48.0, 56.0,
64.0 , 72.0, 80.0, 88.0,
96.0 , 103.5, 112.5, 120.0
};
void setBoschHDEV_5_injectors() {
setLinearCurve(engineConfiguration->hpfpLobeProfileAngle, 0, 120, 1);
setLinearCurve(engineConfiguration->hpfpLobeProfileQuantityBins, 0, 100, 1);
copyArray(engineConfiguration->hpfpLobeProfileQuantityBins, hardCodedHpfpLobeProfileQuantityBins);
copyArray(engineConfiguration->hpfpLobeProfileAngle, hardCodedHpfpLobeProfileAngle);
setLinearCurve(engineConfiguration->hpfpDeadtimeVoltsBins, 8, 16, 0.5);
setLinearCurve(engineConfiguration->hpfpTargetRpmBins, 0, 8000, 1);

View File

@ -136,7 +136,9 @@ void setVwPassatB6() {
*/
coolantControl->pin = TLE8888_PIN_5; // "3 - Lowside 2"
// "7 - Lowside 1"
engineConfiguration->hpfpValvePin = MRE_LS_1;
//engineConfiguration->hpfpValvePin = MRE_LS_1;
engineConfiguration->disablePrimaryUart = true;
engineConfiguration->hpfpValvePin = GPIOB_10; // AUX J13
engineConfiguration->hpfpCamLobes = 3;
engineConfiguration->hpfpPumpVolume = 0.290;
engineConfiguration->hpfpMinAngle = 10;
@ -145,6 +147,7 @@ void setVwPassatB6() {
engineConfiguration->hpfpPidP = 0.0301;
engineConfiguration->hpfpPidI = 0.000012;
setTable(config->veTable, 55);
setBoschVAGETB();