auto-sync

This commit is contained in:
rusEfi 2014-11-14 18:03:12 -06:00
parent 5afed2db2b
commit cad1cdf3b2
3 changed files with 12 additions and 2 deletions

View File

@ -55,4 +55,8 @@ void setBmwE34(engine_configuration_s *engineConfiguration) {
bc->triggerSimulatorFrequency = 200; bc->triggerSimulatorFrequency = 200;
engineConfiguration->map.sensor.sensorType = MT_MPX4250; engineConfiguration->map.sensor.sensorType = MT_MPX4250;
engineConfiguration->hasCltSensor = false;
engineConfiguration->hasIatSensor = false;
} }

View File

@ -27,6 +27,11 @@ bool assertNotInList(T *head, T*element) {
return FALSE; return FALSE;
} }
if (current == element) { if (current == element) {
/**
* for example, this might happen in case of sudden RPM change if event
* was not scheduled by angle but was scheduled by time. In case of scheduling
* by time with slow RPM the whole next fast revolution might be within the wait period
*/
warning(OBD_PCM_Processor_Fault, "re-adding element into event_queue: [%s]", element->name); warning(OBD_PCM_Processor_Fault, "re-adding element into event_queue: [%s]", element->name);
return TRUE; return TRUE;
} }

View File

@ -215,10 +215,11 @@ static void triggerInfo(Engine *engine) {
scheduleMsg(&logger, "expected duty #0=%f/#1=%f", engineConfiguration2->triggerShape.dutyCycle[0], scheduleMsg(&logger, "expected duty #0=%f/#1=%f", engineConfiguration2->triggerShape.dutyCycle[0],
engineConfiguration2->triggerShape.dutyCycle[1]); engineConfiguration2->triggerShape.dutyCycle[1]);
scheduleMsg(&logger, "isError %s/total errors=%d/total revolutions=%d", scheduleMsg(&logger, "isError %s/total errors=%d/total revolutions=%d/self=%s",
boolToString(isTriggerDecoderError()), boolToString(isTriggerDecoderError()),
triggerCentral.triggerState.totalTriggerErrorCounter, triggerCentral.triggerState.totalTriggerErrorCounter,
triggerCentral.triggerState.getTotalRevolutionCounter()); triggerCentral.triggerState.getTotalRevolutionCounter(),
boolToString(engineConfiguration->directSelfStimulation));
#endif #endif