VVT support for VAG trigger #883

This commit is contained in:
rusefi 2020-08-29 17:46:01 -04:00
parent 16d16f9634
commit f3e7a1271b
3 changed files with 9 additions and 2 deletions

View File

@ -418,6 +418,7 @@ typedef enum {
VVT_2JZ = 2, VVT_2JZ = 2,
/** /**
* Mazda NB2 has three cam tooth. We synchronize based on gap ratio. * Mazda NB2 has three cam tooth. We synchronize based on gap ratio.
* @see TT_VVT_MIATA_NB2
*/ */
MIATA_NB2 = 3, MIATA_NB2 = 3,
@ -425,7 +426,9 @@ typedef enum {
* Single-tooth cam sensor mode where TDC and cam signal happen in the same 360 degree of 720 degree engine cycle * Single-tooth cam sensor mode where TDC and cam signal happen in the same 360 degree of 720 degree engine cycle
*/ */
VVT_FIRST_HALF = 4, VVT_FIRST_HALF = 4,
/**
* @see TT_VVT_BOSCH_QUICK_START
*/
VVT_BOSCH_QUICK_START = 5, VVT_BOSCH_QUICK_START = 5,
Force_4_bytes_size_vvt_mode = ENUM_32_BITS, Force_4_bytes_size_vvt_mode = ENUM_32_BITS,

View File

@ -1075,6 +1075,8 @@ static void getValue(const char *paramStr) {
scheduleMsg(&logger, "is_enabled_spi_2=%s", boolToString(engineConfiguration->is_enabled_spi_2)); scheduleMsg(&logger, "is_enabled_spi_2=%s", boolToString(engineConfiguration->is_enabled_spi_2));
} else if (strEqualCaseInsensitive(paramStr, "is_enabled_spi_3")) { } else if (strEqualCaseInsensitive(paramStr, "is_enabled_spi_3")) {
scheduleMsg(&logger, "is_enabled_spi_3=%s", boolToString(engineConfiguration->is_enabled_spi_3)); scheduleMsg(&logger, "is_enabled_spi_3=%s", boolToString(engineConfiguration->is_enabled_spi_3));
} else if (strEqualCaseInsensitive(paramStr, "vvtCamSensorUseRise")) {
scheduleMsg(&logger, "vvtCamSensorUseRise=%s", boolToString(engineConfiguration->vvtCamSensorUseRise));
} else if (strEqualCaseInsensitive(paramStr, "isHip9011Enabled")) { } else if (strEqualCaseInsensitive(paramStr, "isHip9011Enabled")) {
scheduleMsg(&logger, "isHip9011Enabled=%d", engineConfiguration->isHip9011Enabled); scheduleMsg(&logger, "isHip9011Enabled=%d", engineConfiguration->isHip9011Enabled);
} }
@ -1290,6 +1292,8 @@ static void setValue(const char *paramStr, const char *valueStr) {
engineConfiguration->vvtMode = (vvt_mode_e)valueI; engineConfiguration->vvtMode = (vvt_mode_e)valueI;
} else if (strEqualCaseInsensitive(paramStr, "operation_mode")) { } else if (strEqualCaseInsensitive(paramStr, "operation_mode")) {
engineConfiguration->ambiguousOperationMode = (operation_mode_e)valueI; engineConfiguration->ambiguousOperationMode = (operation_mode_e)valueI;
} else if (strEqualCaseInsensitive(paramStr, "vvtCamSensorUseRise")) {
engineConfiguration->vvtCamSensorUseRise = valueI;
} else if (strEqualCaseInsensitive(paramStr, "wwaeTau")) { } else if (strEqualCaseInsensitive(paramStr, "wwaeTau")) {
engineConfiguration->wwaeTau = valueF; engineConfiguration->wwaeTau = valueF;
} else if (strEqualCaseInsensitive(paramStr, "wwaeBeta")) { } else if (strEqualCaseInsensitive(paramStr, "wwaeBeta")) {

View File

@ -748,7 +748,7 @@ bit is_enabled_spi_2
bit enableVerboseCanTx;+CAN broadcast using custom rusEFI protocol\nenable can_broadcast/disable can_broadcast bit enableVerboseCanTx;+CAN broadcast using custom rusEFI protocol\nenable can_broadcast/disable can_broadcast
bit onOffAlternatorLogic;+This will cause the alternator to be operated in a basic on or off mode, this is the simplest alternator control. bit onOffAlternatorLogic;+This will cause the alternator to be operated in a basic on or off mode, this is the simplest alternator control.
bit isCJ125Enabled;enable cj125/disable cj125 bit isCJ125Enabled;enable cj125/disable cj125
bit vvtCamSensorUseRise;+Use rise or fall signal front bit vvtCamSensorUseRise;+Use rise or fall signal front\nget vvtCamSensorUseRise
bit measureMapOnlyInOneCylinder;+Useful for individual intakes bit measureMapOnlyInOneCylinder;+Useful for individual intakes
bit stepperForceParkingEveryRestart bit stepperForceParkingEveryRestart
bit isFasterEngineSpinUpEnabled;+Smarter cranking logic.\nSee also startOfCrankingPrimingPulse bit isFasterEngineSpinUpEnabled;+Smarter cranking logic.\nSee also startOfCrankingPrimingPulse