K progress - just a rename

This commit is contained in:
Andrey 2022-09-24 23:25:36 -04:00
parent 4653cde601
commit 5935c18beb
5 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@ void setProteusHondaElement2003() {
// engineConfiguration->trigger.type = TT_HONDA_K_CAM_4_1; // cam as primary, ignoring crank
// engineConfiguration->globalTriggerAngleOffset = 570;
engineConfiguration->vvtMode[0] = VVT_HONDA_K;
engineConfiguration->vvtMode[0] = VVT_HONDA_K_INTAKE;
engineConfiguration->vvtMode[1] = VVT_FIRST_HALF;
engineConfiguration->vvtOffsets[0] = -41;

View File

@ -723,8 +723,8 @@ case VVT_FIRST_HALF:
return "VVT_FIRST_HALF";
case VVT_FORD_ST170:
return "VVT_FORD_ST170";
case VVT_HONDA_K:
return "VVT_HONDA_K";
case VVT_HONDA_K_INTAKE:
return "VVT_HONDA_K_INTAKE";
case VVT_INACTIVE:
return "VVT_INACTIVE";
case VVT_MAP_V_TWIN:

View File

@ -74,7 +74,7 @@ trigger_type_e getVvtTriggerType(vvt_mode_e vvtMode) {
return TT_VVT_MIATA_NB;
case VVT_BOSCH_QUICK_START:
return TT_VVT_BOSCH_QUICK_START;
case VVT_HONDA_K:
case VVT_HONDA_K_INTAKE:
case VVT_FIRST_HALF:
case VVT_SECOND_HALF:
case VVT_MAP_V_TWIN:

View File

@ -90,7 +90,7 @@ typedef enum __attribute__ ((__packed__)) {
/**
* 4 plus one
*/
VVT_HONDA_K = 10,
VVT_HONDA_K_INTAKE = 10,
VVT_NISSAN_MR = 11,

View File

@ -118,7 +118,7 @@ static bool vvtWithRealDecoder(vvt_mode_e vvtMode) {
// todo: why does VVT_2JZ not use real decoder?
return vvtMode != VVT_INACTIVE
&& vvtMode != VVT_2JZ
&& vvtMode != VVT_HONDA_K
&& vvtMode != VVT_HONDA_K_INTAKE
&& vvtMode != VVT_MAP_V_TWIN
&& vvtMode != VVT_SECOND_HALF
&& vvtMode != VVT_FIRST_HALF;
@ -180,7 +180,7 @@ static angle_t adjustCrankPhase(int camIndex) {
case VVT_MAZDA_SKYACTIV:
case VVT_MITSUBISHI_3A92:
case VVT_MITSUBISHI_6G75:
case VVT_HONDA_K:
case VVT_HONDA_K_INTAKE:
return syncAndReport(tc, getCrankDivider(operationMode), engineConfiguration->vvtBooleanForVerySpecialCases ? 1 : 0);
case VVT_INACTIVE:
// do nothing
@ -360,7 +360,7 @@ void hwHandleVvtCamSignal(TriggerValue front, efitick_t nowNt, int index) {
// this could be just an 'if' but let's have it expandable for future use :)
switch(engineConfiguration->vvtMode[camIndex]) {
case VVT_HONDA_K:
case VVT_HONDA_K_INTAKE:
// honda K has four tooth in VVT intake trigger, so we just wrap each of those to 720 / 4
vvtPosition = wrapVvt(vvtPosition, 180);
break;