only:hellen-honda-k
This commit is contained in:
Andrey 2023-03-28 21:42:20 -04:00
parent e8e114082f
commit 91e1eb825f
2 changed files with 4 additions and 3 deletions

View File

@ -17,14 +17,15 @@ void setHondaK() {
engineConfiguration->specs.firingOrder = FO_1_3_4_2;
engineConfiguration->engineSyncCam = SC_Exhaust_First;
engineConfiguration->trigger.type = TT_HONDA_K_CRANK_12_1;
engineConfiguration->globalTriggerAngleOffset = 663;
int magic = 12; // note that offset and VVT are related
engineConfiguration->globalTriggerAngleOffset = 675 - magic;
// VVT is here just single tooth? and we do not even use it!?
engineConfiguration->vvtMode[0] = VVT_HONDA_K_INTAKE;
// also known as 'CAM sync'? i am pretty confused at this point
engineConfiguration->vvtMode[1] = VVT_HONDA_K_EXHAUST;
engineConfiguration->vvtOffsets[0] = -41;
engineConfiguration->vvtOffsets[1] = 171;
engineConfiguration->vvtOffsets[1] = 171 + magic;
// set cranking_fuel 15
engineConfiguration->cranking.baseFuel = 75;

View File

@ -25,7 +25,7 @@ TEST(realk20, cranking) {
float vvtE = engine->triggerCentral.getVVTPosition(/*bankIndex*/0, /*camIndex*/1);
if (vvtE != 0) {
EXPECT_TRUE(vvtE > -10 && vvtE < 10);
EXPECT_TRUE(vvtE > -10 && vvtE < 10) << vvtE;
}
}