Nissan VVT trigger decoder #2887
This commit is contained in:
parent
70424ac7b5
commit
9fb7e39864
|
@ -362,10 +362,13 @@ void TriggerCentral::validateCamVvtCounters() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TriggerState::syncSymmetricalCrank(int mod, int remainder) {
|
bool TriggerState::syncSymmetricalCrank(int mod, int remainder) {
|
||||||
|
bool isSync = false;
|
||||||
while (getTotalRevolutionCounter() % mod != remainder) {
|
while (getTotalRevolutionCounter() % mod != remainder) {
|
||||||
incrementTotalEventCounter();
|
incrementTotalEventCounter();
|
||||||
|
isSync = true;
|
||||||
}
|
}
|
||||||
|
return isSync;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TriggerState::incrementTotalEventCounter() {
|
void TriggerState::incrementTotalEventCounter() {
|
||||||
|
|
|
@ -91,7 +91,7 @@ public:
|
||||||
*/
|
*/
|
||||||
bool isEvenRevolution() const;
|
bool isEvenRevolution() const;
|
||||||
void incrementTotalEventCounter();
|
void incrementTotalEventCounter();
|
||||||
void syncSymmetricalCrank(int mod, int remainder);
|
bool syncSymmetricalCrank(int mod, int remainder);
|
||||||
efitime_t getTotalEventCounter() const;
|
efitime_t getTotalEventCounter() const;
|
||||||
|
|
||||||
void decodeTriggerEvent(
|
void decodeTriggerEvent(
|
||||||
|
|
Loading…
Reference in New Issue