auto-sync

This commit is contained in:
rusEfi 2015-09-22 09:01:31 -04:00
parent ec3cafe6ef
commit f00d9bd44e
3 changed files with 12 additions and 5 deletions

View File

@ -30,11 +30,13 @@ void configureNeon2003TriggerShape(TriggerShape *s) {
s->reset(FOUR_STROKE_CAM_SENSOR, !useOnlyPrimary);
s->useRiseEdge = true;
s->gapBothDirections = true;
s->gapBothDirections = false;
s->tdcPosition = 496;
// are these non-default values really needed here now that the gap is finally precise?
s->setTriggerSynchronizationGap2(0.5 * CHRYSLER_NGC4_GAP,
1.5 * CHRYSLER_NGC4_GAP);
s->setTriggerSynchronizationGap(1);
s->setSecondTriggerSynchronizationGap(1);
float EPS_ANGLE = 0.3;
@ -60,6 +62,11 @@ void configureNeon2003TriggerShape(TriggerShape *s) {
s->addEvent(720, T_PRIMARY, TV_LOW);
} else {
/**
* 7 primary (four narrow + one wide + two narrow)
* 64 secondary (one wide + 15 narrow + 16 narrow + one wide + 15 narrow + 16 narrow)
*
*/
s->addEvent(25, T_SECONDARY, TV_LOW);
s->addEvent(30, T_SECONDARY, TV_HIGH);

View File

@ -10,7 +10,7 @@
#include "trigger_structure.h"
#define CHRYSLER_NGC4_GAP 4
#define CHRYSLER_NGC4_GAP 1
#define CHRYSLER_NGC6_GAP 1.5
void configureNeon1995TriggerShape(TriggerShape *s);

View File

@ -490,7 +490,7 @@ void testTriggerDecoder(void) {
testTriggerDecoder3("miata 1994", MIATA_1994_DEVIATOR, 11, 0.2985, 0.3890, MIATA_NA_GAP);
testTriggerDecoder3("citroen", CITROEN_TU3JP, 0, 0.4833, 0.0, 2.9994);
testTriggerDecoder3("neon NGC4", DODGE_NEON_2003, 24, 0.5000, 0.4983, CHRYSLER_NGC4_GAP);
testTriggerDecoder3("neon NGC4", DODGE_NEON_2003, 70, 0.5000, 0.4983, CHRYSLER_NGC4_GAP);
testTriggerDecoder2("sachs", SACHS, 0, 0.4800, 0.000);
printTriggerDebug = true;