trigger: in corner cases like NB2 and VQ35 those are not revolutions

This commit is contained in:
Andrey 2022-09-07 21:45:59 -04:00
parent d3eab7c3b7
commit 00fea2cbe5
2 changed files with 4 additions and 4 deletions

View File

@ -388,7 +388,7 @@ angle_t PrimaryTriggerDecoder::syncEnginePhase(int divider, int remainder, angle
* let's increase the trigger event counter, that would adjust the state of
* virtual crank-based trigger
*/
incrementTotalEventCounter();
incrementShaftSynchronizationCounter();
totalShift += engineCycle / divider;
}
@ -406,7 +406,7 @@ angle_t PrimaryTriggerDecoder::syncEnginePhase(int divider, int remainder, angle
return totalShift;
}
void TriggerDecoderBase::incrementTotalEventCounter() {
void TriggerDecoderBase::incrementShaftSynchronizationCounter() {
totalRevolutionCounter++;
}
@ -466,7 +466,7 @@ void TriggerDecoderBase::onShaftSynchronization(
resetCurrentCycleState();
if (wasSynchronized) {
incrementTotalEventCounter();
incrementShaftSynchronizationCounter();
} else {
// We have just synchronized, this is the zeroth revolution
totalRevolutionCounter = 0;

View File

@ -72,7 +72,7 @@ public:
/**
* this is important for crank-based virtual trigger and VVT magic
*/
void incrementTotalEventCounter();
void incrementShaftSynchronizationCounter();
efitime_t getTotalEventCounter() const;