Skip to content

Commit

Permalink
new VVT trigger shape? #1847
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Oct 3, 2020
1 parent 3083d72 commit e5b8e0e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions firmware/controllers/algo/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
5 changes: 5 additions & 0 deletions firmware/controllers/algo/rusefi_enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 3 additions & 1 deletion firmware/controllers/trigger/trigger_central.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e5b8e0e

Please sign in to comment.