new VVT trigger shape? #1847

This commit is contained in:
rusefillc 2020-10-03 10:39:43 -04:00
parent 3083d729e8
commit e5b8e0e515
3 changed files with 10 additions and 1 deletions

View File

@ -85,6 +85,8 @@ trigger_type_e getVvtTriggerType(vvt_mode_e vvtMode) {
return TT_ONE;
case VVT_SECOND_HALF:
return TT_ONE;
case VVT_4_1:
return TT_ONE;
default:
return TT_ONE;
}

View File

@ -433,6 +433,11 @@ typedef enum {
*/
VVT_BOSCH_QUICK_START = 5,
/**
* 1.8l Toyota 1ZZ-FE https://rusefi.com/forum/viewtopic.php?f=3&t=1735
*/
VVT_4_1 = 6,
Force_4_bytes_size_vvt_mode = ENUM_32_BITS,
} vvt_mode_e;

View File

@ -86,7 +86,9 @@ void addTriggerEventListener(ShaftPositionListener listener, const char *name, E
#define miataNbIndex (0)
static bool vvtWithRealDecoder(vvt_mode_e vvtMode) {
return vvtMode == MIATA_NB2 || vvtMode == VVT_BOSCH_QUICK_START;
return vvtMode == MIATA_NB2
|| vvtMode == VVT_BOSCH_QUICK_START
|| vvtMode == VVT_4_1;
}
void hwHandleVvtCamSignal(trigger_value_e front, efitick_t nowNt DECLARE_ENGINE_PARAMETER_SUFFIX) {