scramblr reports sync issues on NB1 fix #990

This commit is contained in:
rusefi 2019-10-30 21:01:23 -04:00
parent 4d095d4844
commit 47eaea3da3
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ void initializeMazdaMiataNb2Crank(TriggerShape *s) {
static void initializeMazdaMiataNb1ShapeWithOffset(TriggerShape *s, float offset) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true);
s->setTriggerSynchronizationGap(0.11f);
s->setTriggerSynchronizationGap3(0, 0.065, 0.17f);
s->useRiseEdge = false;
s->bothFrontsRequired = true;
s->useOnlyPrimaryForSync = true;

View File

@ -558,7 +558,7 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
scheduleMsg(logger, "index=%d NaN gap, you have noise issues?",
i);
} else {
scheduleMsg(logger, "time=%d index=%d: gap=%.2f expected from %.2f to %.2f error=%s",
scheduleMsg(logger, "time=%d index=%d: gap=%.3f expected from %.3f to %.3f error=%s",
/* cast is needed to make sure we do not put 64 bit value to stack*/ (int)getTimeNowSeconds(),
i,
gap,