auto-sync

This commit is contained in:
rusEfi 2015-04-14 00:10:08 -04:00
parent 4f6cebb15b
commit 6d752566a4
3 changed files with 4 additions and 3 deletions

View File

@ -38,6 +38,7 @@ void setBmwE34(DECLARE_ENGINE_PARAMETER_F) {
engineConfiguration->injectionMode = IM_BATCH;
engineConfiguration->twoWireBatch = true;
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
engineConfiguration->useOnlyFrontForTrigger = true;
// Trigger configuration
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL_60_2;
@ -59,7 +60,7 @@ void setBmwE34(DECLARE_ENGINE_PARAMETER_F) {
engineConfiguration->isIgnitionEnabled = true;
setConstantDwell(3 PASS_ENGINE_PARAMETER); // a bit shorter dwell
engineConfiguration->ignMathCalculateAtIndex = 15;
engineConfiguration->ignMathCalculateAtIndex = 14;
// Cranking
engineConfiguration->cranking.rpm = 600;

View File

@ -113,7 +113,7 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, uint64_t now
trigger_wheel_e triggerWheel = eventIndex[signal];
if (curSignal == prevSignal) {
if (!engineConfiguration->useOnlyFrontForTrigger && curSignal == prevSignal) {
orderingErrorCounter++;
}

View File

@ -511,7 +511,7 @@ void testTriggerDecoder(void) {
testTriggerDecoder2("ford aspire", FORD_ASPIRE_1996, 4, 0.0, 0.5);
//testTriggerDecoder2("bmw", BMW_E34, 0, 0.9750, 0.5167);
testTriggerDecoder2("bmw", BMW_E34, 0, 0.4833, 0.0);
testTriggerDecoder2("bmw", BMW_E34, 0, 0.5167, 0.0);
test1995FordInline6TriggerDecoder();
testMazdaMianaNbDecoder();