mirror of https://github.com/rusefi/rusefi.git
parent
e8e114082f
commit
91e1eb825f
|
@ -17,14 +17,15 @@ void setHondaK() {
|
||||||
engineConfiguration->specs.firingOrder = FO_1_3_4_2;
|
engineConfiguration->specs.firingOrder = FO_1_3_4_2;
|
||||||
engineConfiguration->engineSyncCam = SC_Exhaust_First;
|
engineConfiguration->engineSyncCam = SC_Exhaust_First;
|
||||||
engineConfiguration->trigger.type = TT_HONDA_K_CRANK_12_1;
|
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!?
|
// VVT is here just single tooth? and we do not even use it!?
|
||||||
engineConfiguration->vvtMode[0] = VVT_HONDA_K_INTAKE;
|
engineConfiguration->vvtMode[0] = VVT_HONDA_K_INTAKE;
|
||||||
// also known as 'CAM sync'? i am pretty confused at this point
|
// also known as 'CAM sync'? i am pretty confused at this point
|
||||||
engineConfiguration->vvtMode[1] = VVT_HONDA_K_EXHAUST;
|
engineConfiguration->vvtMode[1] = VVT_HONDA_K_EXHAUST;
|
||||||
engineConfiguration->vvtOffsets[0] = -41;
|
engineConfiguration->vvtOffsets[0] = -41;
|
||||||
engineConfiguration->vvtOffsets[1] = 171;
|
engineConfiguration->vvtOffsets[1] = 171 + magic;
|
||||||
|
|
||||||
// set cranking_fuel 15
|
// set cranking_fuel 15
|
||||||
engineConfiguration->cranking.baseFuel = 75;
|
engineConfiguration->cranking.baseFuel = 75;
|
||||||
|
|
|
@ -25,7 +25,7 @@ TEST(realk20, cranking) {
|
||||||
|
|
||||||
float vvtE = engine->triggerCentral.getVVTPosition(/*bankIndex*/0, /*camIndex*/1);
|
float vvtE = engine->triggerCentral.getVVTPosition(/*bankIndex*/0, /*camIndex*/1);
|
||||||
if (vvtE != 0) {
|
if (vvtE != 0) {
|
||||||
EXPECT_TRUE(vvtE > -10 && vvtE < 10);
|
EXPECT_TRUE(vvtE > -10 && vvtE < 10) << vvtE;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue