rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
trigger_suzuki.cpp
Go to the documentation of this file.
1/*
2 * trigger_suzuki.cpp
3 *
4 * @date Oct 4, 2021
5 * @author Andrey Belomutskiy, (c) 2012-2021
6 */
7
8#include "pch.h"
9
10#include "trigger_suzuki.h"
11
14
15 float w = 5;
16 float specialTooth = 20;
17
20
21 s->addEvent720(2 * specialTooth + 180 - w, TriggerValue::RISE);
22 s->addEvent720(2 * specialTooth + 180, TriggerValue::FALL);
23
26
29
32
35}
36
39 float w = 5;
40
41 int secondTooth = 15;
42
43 // a bit lame: we start with falling front of first tooth
45
46 s->addToothRiseFall(secondTooth, w);
47 s->addToothRiseFall(43, w);
48
49 s->addToothRiseFall(120, w);
50 s->addToothRiseFall(120 + secondTooth, w);
51 s->addToothRiseFall(158, w);
52 s->addToothRiseFall(158 + secondTooth, w);
53
54 s->addToothRiseFall(240, w);
55 s->addToothRiseFall(240 + secondTooth, w);
56 s->addToothRiseFall(283, w);
57
58 // a bit lame: we end with rising front of first tooth
60
63}
Trigger shape has all the fields needed to describe and decode trigger signal.
void initialize(operation_mode_e operationMode, SyncEdge syncEdge)
void setSecondTriggerSynchronizationGap(float syncRatio)
void setTriggerSynchronizationGap(float syncRatio)
void addToothRiseFall(angle_t angle, angle_t width=10, TriggerWheel const channelIndex=TriggerWheel::T_PRIMARY)
void addEvent720(angle_t angle, TriggerValue const state, TriggerWheel const channelIndex=TriggerWheel::T_PRIMARY)
void addEvent360(angle_t angle, TriggerValue const state, TriggerWheel const channelIndex=TriggerWheel::T_PRIMARY)
@ FOUR_STROKE_CAM_SENSOR
void initializeSuzukiK6A(TriggerWaveform *s)
void initializeSuzukiG13B(TriggerWaveform *s)