auto-sync

This commit is contained in:
rusEfi 2014-10-29 20:03:02 -05:00
parent ac83b83a0f
commit a48b2eaaf7
5 changed files with 9 additions and 4 deletions

View File

@ -114,6 +114,9 @@ void setDodgeNeonNGCEngineConfiguration(engine_configuration_s *engineConfigurat
engineConfiguration->triggerConfig.triggerType = TT_DODGE_NEON_2003;
setFrankenso_01_LCD(boardConfiguration);
engineConfiguration->globalTriggerAngleOffset = 46;
engineConfiguration->needSecondTriggerInput = false;
engineConfiguration->cylindersCount = 4;
// I want to start with a simple Alpha-N

View File

@ -15,7 +15,7 @@ void configureNeon2003TriggerShape(trigger_shape_s *s) {
s->gapBothDirections = true;
setTriggerSynchronizationGap(s, 2.5);
setTriggerSynchronizationGap(s, 4);
s->addEvent(base + 26, T_PRIMARY, TV_HIGH);
s->addEvent(base + 62, T_PRIMARY, TV_LOW);

View File

@ -117,8 +117,8 @@ void TriggerState::decodeTriggerEvent(trigger_shape_s const*triggerShape, trigge
*/
nextTriggerEvent(triggerWheel, nowUs);
if (triggerShape->gapBothDirections) {
// toothed_previous_duration = getCurrentGapDuration(nowUs);
// toothed_previous_time = nowUs;
toothed_previous_duration = getCurrentGapDuration(nowUs);
toothed_previous_time = nowUs;
}
return;
}

View File

@ -33,6 +33,8 @@ trigger_shape_s::trigger_shape_s() :
wave(switchTimesBuffer, NULL) {
reset(OM_NONE);
wave.waves = h.waves;
useRiseEdge = false;
gapBothDirections = false;
}
void trigger_shape_s::assignSize() {

View File

@ -532,7 +532,7 @@ void testTriggerDecoder(void) {
testTriggerDecoder2("citroen", CITROEN_TU3JP, 0, 0.4833, 0.0);
printGapRatio = true;
// todo testTriggerDecoder2("neon NGC", DODGE_NEON_2003, 6, 0.2139, 0.0);
testTriggerDecoder2("neon NGC", DODGE_NEON_2003, 12, 0.5139, 0.0);
testMazda323();