VVT support for VAG trigger #883

a bit of dead code?
This commit is contained in:
rusefi 2020-08-24 02:31:27 -04:00
parent 4ccb209df3
commit 978c3ff16d
3 changed files with 0 additions and 9 deletions

View File

@ -96,7 +96,6 @@ void TriggerWaveform::initialize(operation_mode_e operationMode) {
memset(expectedEventCount, 0, sizeof(expectedEventCount));
wave.reset();
previousAngle = 0;
memset(riseOnlyIndexes, 0, sizeof(riseOnlyIndexes));
memset(isRiseEvent, 0, sizeof(isRiseEvent));
#if EFI_UNIT_TEST
memset(&triggerSignals, 0, sizeof(triggerSignals));

View File

@ -198,11 +198,6 @@ public:
pin_state_t initialState[PWM_PHASE_MAX_WAVE_PER_PWM];
bool isRiseEvent[PWM_PHASE_MAX_COUNT];
/**
* this table translates trigger definition index into 'front-only' index. This translation is not so trivial
* in case of a multi-channel signal with overlapping waves, for example Ford Aspire/Mitsubishi
*/
int riseOnlyIndexes[PWM_PHASE_MAX_COUNT];
/**
* This is a pretty questionable option which is considered by 'addEvent' method

View File

@ -145,7 +145,6 @@ void calculateTriggerSynchPoint(TriggerWaveform *shape, TriggerState *state DECL
shape->eventAngles[0] = 0;
// this value would be used in case of front-only
shape->eventAngles[1] = 0;
shape->riseOnlyIndexes[0] = 0;
} else {
assertAngleRange(shape->triggerShapeSynchPointIndex, "triggerShapeSynchPointIndex", CUSTOM_TRIGGER_SYNC_ANGLE2);
unsigned int triggerDefinitionCoordinate = (shape->triggerShapeSynchPointIndex + eventIndex) % engine->engineCycleEventCount;
@ -163,8 +162,6 @@ void calculateTriggerSynchPoint(TriggerWaveform *shape, TriggerState *state DECL
} else {
shape->eventAngles[eventIndex] = angle;
}
shape->riseOnlyIndexes[eventIndex] = riseOnlyIndex;
}
}
}