Exemplo n.º 1
0
void configureNeon2003TriggerShape(trigger_shape_s *s) {
	s->reset(FOUR_STROKE_CAM_SENSOR);

	// voodoo magic - we always need 720 at the end
	int base = 10;
	s->useRiseEdge = true;
	s->invertOnAdd = true;

	s->gapBothDirections = true;

	setTriggerSynchronizationGap2(s, 2.5, 4.5);

	s->addEvent(base + 26, T_PRIMARY, TV_HIGH);
	s->addEvent(base + 62, T_PRIMARY, TV_LOW);

	s->addEvent(base + 98, T_PRIMARY, TV_HIGH);
	s->addEvent(base + 134, T_PRIMARY, TV_LOW);

	s->addEvent(base + 180, T_PRIMARY, TV_HIGH);
	s->addEvent(base + 314, T_PRIMARY, TV_LOW);

	s->addEvent(base + 350, T_PRIMARY, TV_HIGH);
	s->addEvent(base + 386, T_PRIMARY, TV_LOW);

	s->addEvent(base + 422, T_PRIMARY, TV_HIGH);
	s->addEvent(base + 458, T_PRIMARY, TV_LOW);

	s->addEvent(base + 494, T_PRIMARY, TV_HIGH);
	s->addEvent(base + 530, T_PRIMARY, TV_LOW);

	s->addEvent(base + 674, T_PRIMARY, TV_HIGH);
	s->addEvent(base + 710, T_PRIMARY, TV_LOW);
}
Exemplo n.º 2
0
void TriggerShape::setTriggerSynchronizationGap(float synchRatio) {
	setTriggerSynchronizationGap2(synchRatio * 0.75f, synchRatio * 1.25f);
}