auto-sync

This commit is contained in:
rusEfi 2016-08-18 22:01:57 -04:00
parent 67f8c34342
commit 8431f7bfc3
1 changed files with 6 additions and 4 deletions

View File

@ -45,10 +45,6 @@ TriggerShape::TriggerShape() :
invertOnAdd = false;
// skippedToothCount = totalToothCount = 0;
syncRatioFrom = syncRatioTo = 0;
secondSyncRatioFrom = 0.000001;
secondSyncRatioTo = 100000;
thirdSyncRatioFrom = 0.000001;
thirdSyncRatioTo = 100000;
memset(frontOnlyIndexes, 0, sizeof(frontOnlyIndexes));
memset(isFrontEvent, 0, sizeof(isFrontEvent));
memset(triggerIndexByAngle, 0, sizeof(triggerIndexByAngle));
@ -114,6 +110,12 @@ void TriggerShape::initialize(operation_mode_e operationMode, bool needSecondTri
// memset(triggerIndexByAngle, 0, sizeof(triggerIndexByAngle));
setTriggerSynchronizationGap(2);
secondSyncRatioFrom = 0.000001;
secondSyncRatioTo = 100000;
thirdSyncRatioFrom = 0.000001;
thirdSyncRatioTo = 100000;
tdcPosition = 0;
// todo: true here, false in constructor() what a mess!
useRiseEdge = true;