only:Lamborghini Diablo 1995 CKP Pattern #5876
This commit is contained in:
parent
765cd63124
commit
5c1f07fe51
|
@ -260,6 +260,10 @@ typedef enum {
|
|||
// without a missing tooth, plus a single tooth cam channel to resolve the engine phase.
|
||||
FOUR_STROKE_TWELVE_TIMES_CRANK_SENSOR = 6,
|
||||
|
||||
/**
|
||||
* Same pattern repeated six times on crank wheel like 1995 Lamborghini Diablo
|
||||
*/
|
||||
FOUR_STROKE_SIX_TIMES_CRANK_SENSOR = 7,
|
||||
} operation_mode_e;
|
||||
|
||||
/**
|
||||
|
|
|
@ -99,10 +99,12 @@ int TriggerWaveform::getTriggerWaveformSynchPointIndex() const {
|
|||
*/
|
||||
angle_t TriggerWaveform::getCycleDuration() const {
|
||||
switch (operationMode) {
|
||||
case FOUR_STROKE_THREE_TIMES_CRANK_SENSOR:
|
||||
return FOUR_STROKE_CYCLE_DURATION / SYMMETRICAL_THREE_TIMES_CRANK_SENSOR_DIVIDER;
|
||||
case FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR:
|
||||
return FOUR_STROKE_CYCLE_DURATION / SYMMETRICAL_CRANK_SENSOR_DIVIDER;
|
||||
case FOUR_STROKE_THREE_TIMES_CRANK_SENSOR:
|
||||
return FOUR_STROKE_CYCLE_DURATION / SYMMETRICAL_THREE_TIMES_CRANK_SENSOR_DIVIDER;
|
||||
case FOUR_STROKE_SIX_TIMES_CRANK_SENSOR:
|
||||
return FOUR_STROKE_CYCLE_DURATION / SYMMETRICAL_SIX_TIMES_CRANK_SENSOR_DIVIDER;
|
||||
case FOUR_STROKE_TWELVE_TIMES_CRANK_SENSOR:
|
||||
return FOUR_STROKE_CYCLE_DURATION / SYMMETRICAL_TWELVE_TIMES_CRANK_SENSOR_DIVIDER;
|
||||
case FOUR_STROKE_CRANK_SENSOR:
|
||||
|
|
|
@ -104,6 +104,8 @@ static int getCrankDivider(operation_mode_e operationMode) {
|
|||
return SYMMETRICAL_CRANK_SENSOR_DIVIDER;
|
||||
case FOUR_STROKE_THREE_TIMES_CRANK_SENSOR:
|
||||
return SYMMETRICAL_THREE_TIMES_CRANK_SENSOR_DIVIDER;
|
||||
case FOUR_STROKE_SIX_TIMES_CRANK_SENSOR:
|
||||
return SYMMETRICAL_SIX_TIMES_CRANK_SENSOR_DIVIDER;
|
||||
case FOUR_STROKE_TWELVE_TIMES_CRANK_SENSOR:
|
||||
return SYMMETRICAL_TWELVE_TIMES_CRANK_SENSOR_DIVIDER;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue