6 {
8 int totalTeethCount = 60;
9
10 float engineCycle = FOUR_STROKE_ENGINE_CYCLE;
11 float toothWidth = 0.5;
12
13 float oneTooth = engineCycle / totalTeethCount;
14
15 int skipped = 3;
16
17
19 NO_LEFT_FILTER, 719);
20
21#if EFI_UNIT_TEST
22 criticalAssertVoid(s->
wave.
phaseCount == (totalTeethCount - skipped) * 2 - 1,
"Tooth count 60-3");
23#endif
24
25 float specialPosition = 58 * oneTooth;
26
27
28
30 specialPosition - 1, specialPosition - 1 + oneTooth);
31
32#if EFI_UNIT_TEST
33 criticalAssertVoid(s->
wave.
phaseCount == (totalTeethCount - skipped) * 2 + 1,
"Tooth count 60-2-2");
34#endif
35
37
41}
@ FOUR_STROKE_CRANK_SENSOR
void addSkippedToothTriggerEvents(TriggerWheel wheel, TriggerWaveform *s, int totalTeethCount, int skippedCount, float toothWidthPercentage, float offset, float engineCycle, float filterLeft, float filterRight)