auto-sync

This commit is contained in:
rusEfi 2016-11-14 21:02:28 -05:00
parent e8182079a9
commit 1fa86f0856
2 changed files with 3 additions and 2 deletions

View File

@ -23,8 +23,6 @@ void setMazdaMiataNb1EngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
engineConfiguration->trigger.type = TT_MAZDA_MIATA_NB1;
engineConfiguration->globalTriggerAngleOffset = 276;
// set_cranking_injection_mode 0
engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS;
// set_injection_mode 1

View File

@ -55,6 +55,8 @@ void initializeMazdaMiataNb2Crank(TriggerShape *s DECLARE_ENGINE_PARAMETER_S) {
float o = 160;
s->tdcPosition = 60;
s->setTriggerSynchronizationGap(1.57f);
s->addEvent2(o + 4 * 66.0f, T_PRIMARY, TV_FALL PASS_ENGINE_PARAMETER);
s->addEvent2(o + 4 * 70.0f, T_PRIMARY, TV_RISE PASS_ENGINE_PARAMETER);
@ -68,6 +70,7 @@ static void initializeMazdaMiataNb1ShapeWithOffset(TriggerShape *s, float offset
s->useRiseEdge = false;
s->invertOnAdd = true;
s->tdcPosition = 276;
/**
* cam sensor is primary, crank sensor is secondary