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) {
|
||||
incrementTotalEventCounter();
|
||||
isSync = true;
|
||||
}
|
||||
return isSync;
|
||||
}
|
||||
|
||||
void TriggerState::incrementTotalEventCounter() {
|
||||
|
|
|
@ -91,7 +91,7 @@ public:
|
|||
*/
|
||||
bool isEvenRevolution() const;
|
||||
void incrementTotalEventCounter();
|
||||
void syncSymmetricalCrank(int mod, int remainder);
|
||||
bool syncSymmetricalCrank(int mod, int remainder);
|
||||
efitime_t getTotalEventCounter() const;
|
||||
|
||||
void decodeTriggerEvent(
|
||||
|
|
Loading…
Reference in New Issue