auto-sync
This commit is contained in:
parent
255baddc9b
commit
2041298b25
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue