mirror of https://github.com/rusefi/rusefi-1.git
switch back to flag (#4155)
This commit is contained in:
parent
e8811e60a4
commit
7e0f2d8337
|
@ -226,7 +226,7 @@ void TriggerStateWithRunningStatistics::resetTriggerState() {
|
||||||
prevInstantRpmValue = 0;
|
prevInstantRpmValue = 0;
|
||||||
m_instantRpm = 0;
|
m_instantRpm = 0;
|
||||||
|
|
||||||
synchronizedPhase.init();
|
m_hasSynchronizedPhase = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TriggerStateWithRunningStatistics::movePreSynchTimestamps() {
|
void TriggerStateWithRunningStatistics::movePreSynchTimestamps() {
|
||||||
|
@ -408,7 +408,7 @@ angle_t TriggerStateWithRunningStatistics::syncEnginePhase(int divider, int rema
|
||||||
}
|
}
|
||||||
|
|
||||||
// Allow injection/ignition to happen, we've now fully sync'd the crank based on new cam information
|
// Allow injection/ignition to happen, we've now fully sync'd the crank based on new cam information
|
||||||
synchronizedPhase.reset();
|
m_hasSynchronizedPhase = true;
|
||||||
|
|
||||||
if (totalShift > 0) {
|
if (totalShift > 0) {
|
||||||
vvtSyncCounter++;
|
vvtSyncCounter++;
|
||||||
|
|
|
@ -217,7 +217,7 @@ public:
|
||||||
// i.e. if we have enough VVT information to have full sync on
|
// i.e. if we have enough VVT information to have full sync on
|
||||||
// an indeterminite crank pattern
|
// an indeterminite crank pattern
|
||||||
bool hasSynchronizedPhase() const {
|
bool hasSynchronizedPhase() const {
|
||||||
return !synchronizedPhase.hasElapsedSec(3);
|
return m_hasSynchronizedPhase;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -228,7 +228,7 @@ private:
|
||||||
float m_instantRpm = 0;
|
float m_instantRpm = 0;
|
||||||
float m_instantRpmRatio = 0;
|
float m_instantRpmRatio = 0;
|
||||||
|
|
||||||
Timer synchronizedPhase;
|
bool m_hasSynchronizedPhase = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
angle_t getEngineCycle(operation_mode_e operationMode);
|
angle_t getEngineCycle(operation_mode_e operationMode);
|
||||||
|
|
Loading…
Reference in New Issue