rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
trigger_vw.h File Reference

Functions

void setVwConfiguration (TriggerWaveform *s)
 
void setSkodaFavorit (TriggerWaveform *s)
 

Function Documentation

◆ setSkodaFavorit()

void setSkodaFavorit ( TriggerWaveform s)

I know Skoda was not owned by VAG back than but that's OK

Definition at line 12 of file trigger_vw.cpp.

12 {
14
17
20
23
24 s->tdcPosition = 180 + 47;
25 s->setTriggerSynchronizationGap3(/*gapIndex*/0, 2, 4);
26}
void initialize(operation_mode_e operationMode, SyncEdge syncEdge)
void addEvent360(angle_t angle, TriggerValue const state, TriggerWheel const channelIndex=TriggerWheel::T_PRIMARY)
void setTriggerSynchronizationGap3(int index, float syncRatioFrom, float syncRatioTo)
@ FOUR_STROKE_CRANK_SENSOR

Referenced by TriggerWaveform::initializeTriggerWaveform().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setVwConfiguration()

void setVwConfiguration ( TriggerWaveform s)

Definition at line 28 of file trigger_vw.cpp.

28 {
30
31 int totalTeethCount = 60;
32 int skippedCount = 2;
33
34 float engineCycle = FOUR_STROKE_ENGINE_CYCLE;
35 float toothWidth = 0.5;
36
37 addSkippedToothTriggerEvents(TriggerWheel::T_PRIMARY, s, 60, 2, toothWidth, 0, engineCycle,
38 NO_LEFT_FILTER, 690);
39
40 float angleDown = engineCycle / totalTeethCount * (totalTeethCount - skippedCount - 1 + (1 - toothWidth) );
41 s->addEventClamped(0 + angleDown + 12, TriggerValue::RISE, TriggerWheel::T_PRIMARY, NO_LEFT_FILTER, NO_RIGHT_FILTER);
42 s->addEventClamped(0 + engineCycle, TriggerValue::FALL, TriggerWheel::T_PRIMARY, NO_LEFT_FILTER, NO_RIGHT_FILTER);
43
45 s->setSecondTriggerSynchronizationGap(1); // this gap is not required to synch on perfect signal but is needed to handle to reject cranking transition noise
47}
void setSecondTriggerSynchronizationGap(float syncRatio)
void setThirdTriggerSynchronizationGap(float syncRatio)
void setTriggerSynchronizationGap2(float syncRatioFrom, float syncRatioTo)
void addEventClamped(angle_t angle, TriggerValue const state, TriggerWheel const channelIndex, float filterLeft, float filterRight)
void addSkippedToothTriggerEvents(TriggerWheel wheel, TriggerWaveform *s, int totalTeethCount, int skippedCount, float toothWidthPercentage, float offset, float engineCycle, float filterLeft, float filterRight)

Referenced by TriggerWaveform::initializeTriggerWaveform().

Here is the call graph for this function:
Here is the caller graph for this function:

Go to the source code of this file.