synchronized Phase handling improvements fix #4099
This commit is contained in:
parent
db3e48ec42
commit
32d46d1f09
|
@ -30,6 +30,7 @@ Release template (copy/paste this for new release):
|
|||
|
||||
### Fixed
|
||||
- Make 36-2 trigger sync parameters more generous #4132
|
||||
- Synchronized Phase handling fixes #4099
|
||||
|
||||
## April 20202 Release - "Day 58"
|
||||
|
||||
|
|
|
@ -81,7 +81,6 @@ void TriggerState::resetTriggerState() {
|
|||
totalEventCountBase = 0;
|
||||
isFirstEvent = true;
|
||||
|
||||
m_hasSynchronizedPhase = false;
|
||||
synchronizedPhase.init();
|
||||
}
|
||||
|
||||
|
@ -409,7 +408,6 @@ angle_t TriggerState::syncEnginePhase(int divider, int remainder, angle_t engine
|
|||
}
|
||||
|
||||
// Allow injection/ignition to happen, we've now fully sync'd the crank based on new cam information
|
||||
m_hasSynchronizedPhase = true;
|
||||
synchronizedPhase.reset();
|
||||
|
||||
return totalShift;
|
||||
|
|
|
@ -160,7 +160,7 @@ public:
|
|||
// i.e. if we have enough VVT information to have full sync on
|
||||
// an indeterminite crank pattern
|
||||
bool hasSynchronizedPhase() const {
|
||||
return m_hasSynchronizedPhase;
|
||||
return !synchronizedPhase.hasElapsedSec(3);
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -173,8 +173,6 @@ private:
|
|||
|
||||
bool isFirstEvent;
|
||||
|
||||
// todo: migrate from 'm_hasSynchronizedPhase' to 'synchronizedPhase'
|
||||
bool m_hasSynchronizedPhase = false;
|
||||
Timer synchronizedPhase;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue